8319450: New methods java.net.InetXAddress.ofLiteral() miss @since tag

Reviewed-by: dfuchs, aefimov, vtewari, jpai
This commit is contained in:
Marc R. Hoffmann 2023-11-07 06:37:45 +00:00 committed by Jaikiran Pai
parent 439ed046e4
commit 419ed90770
3 changed files with 3 additions and 0 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);