< prev index next >
src/java.base/share/classes/java/lang/Class.java
Print this page
*** 3419,3428 ****
--- 3419,3429 ----
.map(c -> c == null ? "null" : c.getName())
.collect(Collectors.joining(",", "(", ")")));
}
/** use serialVersionUID from JDK 1.1 for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = 3206093459760846163L;
/**
* Class Class is special cased within the Serialization Stream Protocol.
*** 3438,3447 ****
--- 3439,3449 ----
* is written into the stream. Future references to the class descriptor
* are written as references to the initial class descriptor instance.
*
* @see java.io.ObjectStreamClass
*/
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields =
new ObjectStreamField[0];
/**
< prev index next >