mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8253100: Fix "no comment" warnings in java.base/java.net
Reviewed-by: ryadav, chegar, naoto, alanb
This commit is contained in:
parent
d185a6c53e
commit
5f4bc0aca6
10 changed files with 135 additions and 34 deletions
|
@ -1712,6 +1712,9 @@ public class InetAddress implements java.io.Serializable {
|
|||
return (InetAddressImpl) impl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes an empty InetAddress.
|
||||
*/
|
||||
@java.io.Serial
|
||||
private void readObjectNoData () {
|
||||
if (getClass().getClassLoader() != null) {
|
||||
|
@ -1724,6 +1727,13 @@ public class InetAddress implements java.io.Serializable {
|
|||
private static final long FIELDS_OFFSET
|
||||
= UNSAFE.objectFieldOffset(InetAddress.class, "holder");
|
||||
|
||||
/**
|
||||
* Restores the state of this object from the stream.
|
||||
*
|
||||
* @param s the {@code ObjectInputStream} from which data is read
|
||||
* @throws IOException if an I/O error occurs
|
||||
* @throws ClassNotFoundException if a serialized class cannot be loaded
|
||||
*/
|
||||
@java.io.Serial
|
||||
private void readObject (ObjectInputStream s) throws
|
||||
IOException, ClassNotFoundException {
|
||||
|
@ -1744,9 +1754,10 @@ public class InetAddress implements java.io.Serializable {
|
|||
/* needed because the serializable fields no longer exist */
|
||||
|
||||
/**
|
||||
* @serialField hostName String
|
||||
* @serialField address int
|
||||
* @serialField family int
|
||||
* @serialField hostName String the hostname for this address
|
||||
* @serialField address int holds a 32-bit IPv4 address.
|
||||
* @serialField family int specifies the address family type, for instance,
|
||||
* {@code '1'} for IPv4 addresses, and {@code '2'} for IPv6 addresses.
|
||||
*/
|
||||
@java.io.Serial
|
||||
private static final ObjectStreamField[] serialPersistentFields = {
|
||||
|
@ -1755,6 +1766,12 @@ public class InetAddress implements java.io.Serializable {
|
|||
new ObjectStreamField("family", int.class),
|
||||
};
|
||||
|
||||
/**
|
||||
* Writes the state of this object to the stream.
|
||||
*
|
||||
* @param s the {@code ObjectOutputStream} to which data is written
|
||||
* @throws IOException if an I/O error occurs
|
||||
*/
|
||||
@java.io.Serial
|
||||
private void writeObject (ObjectOutputStream s) throws
|
||||
IOException {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue