--- jsr166/src/jsr166e/extra/AtomicDoubleArray.java 2013/01/09 02:51:37 1.6 +++ jsr166/src/jsr166e/extra/AtomicDoubleArray.java 2013/07/22 16:47:46 1.11 @@ -14,7 +14,7 @@ import static java.lang.Double.longBitsT * See the {@link java.util.concurrent.atomic} package specification * for description of the properties of atomic variables. * - *

This class compares primitive {@code double} + *

This class compares primitive {@code double} * values in methods such as {@link #compareAndSet} by comparing their * bitwise representation using {@link Double#doubleToRawLongBits}, * which differs from both the primitive double {@code ==} operator @@ -162,11 +162,10 @@ public class AtomicDoubleArray implement * if the current value is bitwise equal * to the expected value. * - *

May - * fail spuriously - * and does not provide ordering guarantees, so is only rarely an - * appropriate alternative to {@code compareAndSet}. + * May fail spuriously and does not provide ordering guarantees, + * so is only rarely an appropriate alternative to {@code compareAndSet}. * * @param i the index * @param expect the expected value @@ -238,6 +237,8 @@ public class AtomicDoubleArray implement /** * Saves the state to a stream (that is, serializes it). * + * @param s the stream + * @throws java.io.IOException if an I/O error occurs * @serialData The length of the array is emitted (int), followed by all * of its elements (each a {@code double}) in the proper order. */ @@ -256,6 +257,10 @@ public class AtomicDoubleArray implement /** * Reconstitutes the instance 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 java.io.IOException if an I/O error occurs */ private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {