mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
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
3 changed files with 3 additions and 0 deletions
|
@ -173,6 +173,7 @@ class Inet4Address extends InetAddress {
|
||||||
* @throws IllegalArgumentException if the {@code ipv4AddressLiteral} cannot be
|
* @throws IllegalArgumentException if the {@code ipv4AddressLiteral} cannot be
|
||||||
* parsed as an IPv4 address literal.
|
* parsed as an IPv4 address literal.
|
||||||
* @throws NullPointerException if the {@code ipv4AddressLiteral} is {@code null}.
|
* @throws NullPointerException if the {@code ipv4AddressLiteral} is {@code null}.
|
||||||
|
* @since 22
|
||||||
*/
|
*/
|
||||||
public static Inet4Address ofLiteral(String ipv4AddressLiteral) {
|
public static Inet4Address ofLiteral(String ipv4AddressLiteral) {
|
||||||
Objects.requireNonNull(ipv4AddressLiteral);
|
Objects.requireNonNull(ipv4AddressLiteral);
|
||||||
|
|
|
@ -518,6 +518,7 @@ class Inet6Address extends InetAddress {
|
||||||
* @throws IllegalArgumentException if the {@code ipv6AddressLiteral} cannot be
|
* @throws IllegalArgumentException if the {@code ipv6AddressLiteral} cannot be
|
||||||
* parsed as an IPv6 address literal.
|
* parsed as an IPv6 address literal.
|
||||||
* @throws NullPointerException if the {@code ipv6AddressLiteral} is {@code null}.
|
* @throws NullPointerException if the {@code ipv6AddressLiteral} is {@code null}.
|
||||||
|
* @since 22
|
||||||
*/
|
*/
|
||||||
public static InetAddress ofLiteral(String ipv6AddressLiteral) {
|
public static InetAddress ofLiteral(String ipv6AddressLiteral) {
|
||||||
Objects.requireNonNull(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}.
|
* @throws NullPointerException if the {@code ipAddressLiteral} is {@code null}.
|
||||||
* @see Inet4Address#ofLiteral(String)
|
* @see Inet4Address#ofLiteral(String)
|
||||||
* @see Inet6Address#ofLiteral(String)
|
* @see Inet6Address#ofLiteral(String)
|
||||||
|
* @since 22
|
||||||
*/
|
*/
|
||||||
public static InetAddress ofLiteral(String ipAddressLiteral) {
|
public static InetAddress ofLiteral(String ipAddressLiteral) {
|
||||||
Objects.requireNonNull(ipAddressLiteral);
|
Objects.requireNonNull(ipAddressLiteral);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue