8319450: New methods java.net.InetXAddress.ofLiteral() miss @since tag
Reviewed-by: dfuchs, aefimov, vtewari, jpai
This commit is contained in:
parent
439ed046e4
commit
419ed90770
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user