< prev index next >

## src/java.base/share/classes/java/io/ObjectStreamClass.java

Print this page

    @@ -91,10 +91,13 @@
          public static final ObjectStreamField[] NO_FIELDS =
              new ObjectStreamField[0];

          @java.io.Serial
          private static final long serialVersionUID = -6120832682080437368L;
    +     /**
    +      * {@code ObjectStreamClass} has no fields for default serialization.
    +      */
          @java.io.Serial
          private static final ObjectStreamField[] serialPersistentFields =
              NO_FIELDS;

          /** reflection factory for obtaining serialization constructors */

    @@ -2536,11 +2539,13 @@
                      return false;
                  }
              }
          }

    -     // a LRA cache of record deserialization constructors
    +     /**
    +      * A LRA cache of record deserialization constructors.
    +      */
          @SuppressWarnings("serial")
          private static final class DeserializationConstructorsCache
              extends ConcurrentHashMap<DeserializationConstructorsCache.Key, MethodHandle>  {

              // keep max. 10 cached entries - when the 11th element is inserted the oldest

< prev index next >