diff --git a/src/java.base/share/classes/java/net/Inet4Address.java b/src/java.base/share/classes/java/net/Inet4Address.java index 9f1def3d5f8..bef9fa9500d 100644 --- a/src/java.base/share/classes/java/net/Inet4Address.java +++ b/src/java.base/share/classes/java/net/Inet4Address.java @@ -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); diff --git a/src/java.base/share/classes/java/net/Inet6Address.java b/src/java.base/share/classes/java/net/Inet6Address.java index 8e132cdf148..ca73a6e1cc1 100644 --- a/src/java.base/share/classes/java/net/Inet6Address.java +++ b/src/java.base/share/classes/java/net/Inet6Address.java @@ -518,6 +518,7 @@ class Inet6Address extends InetAddress { * @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); diff --git a/src/java.base/share/classes/java/net/InetAddress.java b/src/java.base/share/classes/java/net/InetAddress.java index 90d75144a08..7cf3f954235 100644 --- a/src/java.base/share/classes/java/net/InetAddress.java +++ b/src/java.base/share/classes/java/net/InetAddress.java @@ -1722,6 +1722,7 @@ public sealed class InetAddress implements Serializable permits Inet4Address, In * @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);