jdk/src/share/classes/java/lang/String.java
changeset 21636 fcec9002d5f4
parent 21334 c60dfce46a77
child 21668 b62ce4a9635f
equal deleted inserted replaced
21635:b938024653ca 21636:fcec9002d5f4
   120     private static final long serialVersionUID = -6849794470754667710L;
   120     private static final long serialVersionUID = -6849794470754667710L;
   121 
   121 
   122     /**
   122     /**
   123      * Class String is special cased within the Serialization Stream Protocol.
   123      * Class String is special cased within the Serialization Stream Protocol.
   124      *
   124      *
   125      * A String instance is written initially into an ObjectOutputStream in the
   125      * A String instance is written into an ObjectOutputStream according to
   126      * following format:
   126      * <a href="{@docroot}../platform/serialization/spec/output.html">
   127      * <pre>
   127      * Object Serialization Specification, Section 6.2, "Stream Elements"</a>
   128      *      {@code TC_STRING} (utf String)
       
   129      * </pre>
       
   130      * The String is written by method {@code DataOutput.writeUTF}.
       
   131      * A new handle is generated to  refer to all future references to the
       
   132      * string instance within the stream.
       
   133      */
   128      */
   134     private static final ObjectStreamField[] serialPersistentFields =
   129     private static final ObjectStreamField[] serialPersistentFields =
   135         new ObjectStreamField[0];
   130         new ObjectStreamField[0];
   136 
   131 
   137     /**
   132     /**