--- jsr166/src/main/java/util/HashMap.java 2017/08/23 05:33:00 1.1 +++ jsr166/src/main/java/util/HashMap.java 2017/09/03 16:15:38 1.2 @@ -1394,9 +1394,10 @@ public class HashMap extends Abstra } /** - * Save the state of the {@code HashMap} instance to a stream (i.e., - * serialize it). + * Saves this map to a stream (that is, serializes it). * + * @param s the stream + * @throws IOException if an I/O error occurs * @serialData The capacity of the HashMap (the length of the * bucket array) is emitted (int), followed by the * size (an int, the number of key-value @@ -1415,8 +1416,11 @@ public class HashMap extends Abstra } /** - * Reconstitute the {@code HashMap} instance from a stream (i.e., - * deserialize it). + * Reconstitutes this map from a stream (that is, deserializes it). + * @param s the stream + * @throws ClassNotFoundException if the class of a serialized object + * could not be found + * @throws IOException if an I/O error occurs */ private void readObject(java.io.ObjectInputStream s) throws IOException, ClassNotFoundException {