ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/Vector.java
(Generate patch)

Comparing jsr166/src/main/java/util/Vector.java (file contents):
Revision 1.55 by jsr166, Wed May 22 17:36:58 2019 UTC vs.
Revision 1.57 by jsr166, Thu Oct 10 16:53:08 2019 UTC

# Line 102 | Line 102 | public class Vector<E>
102       *
103       * @serial
104       */
105 +    @SuppressWarnings("serial") // Conditionally serializable
106      protected Object[] elementData;
107  
108      /**
# Line 124 | Line 125 | public class Vector<E>
125      protected int capacityIncrement;
126  
127      /** use serialVersionUID from JDK 1.0.2 for interoperability */
128 +    // OPENJDK @java.io.Serial
129      private static final long serialVersionUID = -2767605614048989439L;
130  
131      /**
# Line 1157 | Line 1159 | public class Vector<E>
1159       * @throws ClassNotFoundException if the stream contains data
1160       *         of a non-existing class
1161       */
1162 +    // OPENJDK @java.io.Serial
1163      private void readObject(ObjectInputStream in)
1164              throws IOException, ClassNotFoundException {
1165          ObjectInputStream.GetField gfields = in.readFields();
# Line 1178 | Line 1181 | public class Vector<E>
1181       * @param s the stream
1182       * @throws java.io.IOException if an I/O error occurs
1183       */
1184 +    // OPENJDK @java.io.Serial
1185      private void writeObject(java.io.ObjectOutputStream s)
1186              throws java.io.IOException {
1187          final java.io.ObjectOutputStream.PutField fields = s.putFields();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines