src/java.base/share/classes/java/io/ObjectStreamClass.java
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 53127 b561ea19a7b9
child 58679 9c3209ff7550
equal deleted inserted replaced
58677:13588c901957 58678:9cf78a70fa4f
    82 
    82 
    83     /** serialPersistentFields value indicating no serializable fields */
    83     /** serialPersistentFields value indicating no serializable fields */
    84     public static final ObjectStreamField[] NO_FIELDS =
    84     public static final ObjectStreamField[] NO_FIELDS =
    85         new ObjectStreamField[0];
    85         new ObjectStreamField[0];
    86 
    86 
       
    87     @java.io.Serial
    87     private static final long serialVersionUID = -6120832682080437368L;
    88     private static final long serialVersionUID = -6120832682080437368L;
       
    89     @java.io.Serial
    88     private static final ObjectStreamField[] serialPersistentFields =
    90     private static final ObjectStreamField[] serialPersistentFields =
    89         NO_FIELDS;
    91         NO_FIELDS;
    90 
    92 
    91     /** reflection factory for obtaining serialization constructors */
    93     /** reflection factory for obtaining serialization constructors */
    92     private static final ReflectionFactory reflFactory =
    94     private static final ReflectionFactory reflFactory =
   272 
   274 
   273     /**
   275     /**
   274      * Return the class in the local VM that this version is mapped to.  Null
   276      * Return the class in the local VM that this version is mapped to.  Null
   275      * is returned if there is no corresponding local class.
   277      * is returned if there is no corresponding local class.
   276      *
   278      *
   277      * @return  the <code>Class</code> instance that this descriptor represents
   279      * @return  the {@code Class} instance that this descriptor represents
   278      */
   280      */
   279     @CallerSensitive
   281     @CallerSensitive
   280     public Class<?> forClass() {
   282     public Class<?> forClass() {
   281         if (cl == null) {
   283         if (cl == null) {
   282             return null;
   284             return null;