mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8305206: Add @spec tags in java.base/java.* (part 1)
Reviewed-by: alanb, naoto, darcy, lancea, dfuchs, iris, mchung
This commit is contained in:
parent
ccbb0e8d89
commit
c6bd489cc8
60 changed files with 268 additions and 2 deletions
|
@ -216,6 +216,14 @@ import static java.net.spi.InetAddressResolver.LookupPolicy.IPV6_FIRST;
|
|||
* </dd>
|
||||
* </dl>
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc1918
|
||||
* RFC 1918: Address Allocation for Private Internets
|
||||
* @spec https://www.rfc-editor.org/info/rfc2365
|
||||
* RFC 2365: Administratively Scoped IP Multicast
|
||||
* @spec https://www.rfc-editor.org/info/rfc2373
|
||||
* RFC 2373: IP Version 6 Addressing Architecture
|
||||
* @spec https://www.rfc-editor.org/info/rfc790
|
||||
* RFC 790: Assigned numbers
|
||||
* @author Chris Warth
|
||||
* @see java.net.InetAddress#getByAddress(byte[])
|
||||
* @see java.net.InetAddress#getByAddress(java.lang.String, byte[])
|
||||
|
@ -1408,6 +1416,9 @@ public sealed class InetAddress implements Serializable permits Inet4Address, In
|
|||
* for a global IPv6 address.
|
||||
* @throws SecurityException if a security manager exists
|
||||
* and its checkConnect method doesn't allow the operation
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc2373 RFC 2373: IP Version 6 Addressing Architecture
|
||||
* @spec https://www.rfc-editor.org/info/rfc3330 RFC 3330: Special-Use IPv4 Addresses
|
||||
*/
|
||||
public static InetAddress getByName(String host)
|
||||
throws UnknownHostException {
|
||||
|
@ -1451,6 +1462,8 @@ public sealed class InetAddress implements Serializable permits Inet4Address, In
|
|||
* @throws SecurityException if a security manager exists and its
|
||||
* {@code checkConnect} method doesn't allow the operation.
|
||||
*
|
||||
* @spec https://www.rfc-editor.org/info/rfc2373 RFC 2373: IP Version 6 Addressing Architecture
|
||||
* @spec https://www.rfc-editor.org/info/rfc3330 RFC 3330: Special-Use IPv4 Addresses
|
||||
* @see SecurityManager#checkConnect
|
||||
*/
|
||||
public static InetAddress[] getAllByName(String host)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue