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

Comparing jsr166/src/main/java/util/HashMap.java (file contents):
Revision 1.1 by jsr166, Wed Aug 23 05:33:00 2017 UTC vs.
Revision 1.2 by jsr166, Sun Sep 3 16:15:38 2017 UTC

# Line 1394 | Line 1394 | public class HashMap<K,V> extends Abstra
1394      }
1395  
1396      /**
1397 <     * Save the state of the {@code HashMap} instance to a stream (i.e.,
1398 <     * serialize it).
1397 >     * Saves this map to a stream (that is, serializes it).
1398       *
1399 +     * @param s the stream
1400 +     * @throws IOException if an I/O error occurs
1401       * @serialData The <i>capacity</i> of the HashMap (the length of the
1402       *             bucket array) is emitted (int), followed by the
1403       *             <i>size</i> (an int, the number of key-value
# Line 1415 | Line 1416 | public class HashMap<K,V> extends Abstra
1416      }
1417  
1418      /**
1419 <     * Reconstitute the {@code HashMap} instance from a stream (i.e.,
1420 <     * deserialize it).
1419 >     * Reconstitutes this map from a stream (that is, deserializes it).
1420 >     * @param s the stream
1421 >     * @throws ClassNotFoundException if the class of a serialized object
1422 >     *         could not be found
1423 >     * @throws IOException if an I/O error occurs
1424       */
1425      private void readObject(java.io.ObjectInputStream s)
1426          throws IOException, ClassNotFoundException {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines