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

Comparing jsr166/src/jsr166e/DoubleAdder.java (file contents):
Revision 1.6 by jsr166, Sun Jan 6 05:57:42 2013 UTC vs.
Revision 1.8 by jsr166, Mon Jan 7 07:14:01 2013 UTC

# Line 5 | Line 5
5   */
6  
7   package jsr166e;
8 import java.io.IOException;
8   import java.io.Serializable;
10 import java.io.ObjectInputStream;
11 import java.io.ObjectOutputStream;
9  
10   /**
11   * One or more variables that together maintain an initially zero
# Line 80 | Line 77 | public class DoubleAdder extends Striped
77  
78      /**
79       * Returns the current sum.  The returned value is <em>NOT</em> an
80 <     * atomic snapshot: Invocation in the absence of concurrent
80 >     * atomic snapshot: invocation in the absence of concurrent
81       * updates returns an accurate result, but concurrent updates that
82       * occur while the sum is being calculated might not be
83       * incorporated.  Also, because double-precision arithmetic is not
# Line 190 | Line 187 | public class DoubleAdder extends Striped
187          s.writeDouble(sum());
188      }
189  
190 <    private void readObject(ObjectInputStream s)
191 <        throws IOException, ClassNotFoundException {
190 >    private void readObject(java.io.ObjectInputStream s)
191 >        throws java.io.IOException, ClassNotFoundException {
192          s.defaultReadObject();
193          busy = 0;
194          cells = null;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines