Skip to content

Commit

Permalink
8319450: New methods java.net.InetXAddress.ofLiteral() miss @SInCE tag
Browse files Browse the repository at this point in the history
Reviewed-by: dfuchs, aefimov, vtewari, jpai
  • Loading branch information
Marc R. Hoffmann authored and jaikiran committed Nov 7, 2023
1 parent 439ed04 commit 419ed90
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/java.base/share/classes/java/net/Inet4Address.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class Inet4Address extends InetAddress {
* @throws IllegalArgumentException if the {@code ipv4AddressLiteral} cannot be
* parsed as an IPv4 address literal.
* @throws NullPointerException if the {@code ipv4AddressLiteral} is {@code null}.
* @since 22
*/
public static Inet4Address ofLiteral(String ipv4AddressLiteral) {
Objects.requireNonNull(ipv4AddressLiteral);
Expand Down
1 change: 1 addition & 0 deletions src/java.base/share/classes/java/net/Inet6Address.java
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ public static Inet6Address getByAddress(String host, byte[] addr,
* @throws IllegalArgumentException if the {@code ipv6AddressLiteral} cannot be
* parsed as an IPv6 address literal.
* @throws NullPointerException if the {@code ipv6AddressLiteral} is {@code null}.
* @since 22
*/
public static InetAddress ofLiteral(String ipv6AddressLiteral) {
Objects.requireNonNull(ipv6AddressLiteral);
Expand Down
1 change: 1 addition & 0 deletions src/java.base/share/classes/java/net/InetAddress.java
Original file line number Diff line number Diff line change
Expand Up @@ -1722,6 +1722,7 @@ static InetAddress[] getAllByName0 (String host, boolean check)
* @throws NullPointerException if the {@code ipAddressLiteral} is {@code null}.
* @see Inet4Address#ofLiteral(String)
* @see Inet6Address#ofLiteral(String)
* @since 22
*/
public static InetAddress ofLiteral(String ipAddressLiteral) {
Objects.requireNonNull(ipAddressLiteral);
Expand Down

1 comment on commit 419ed90

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.