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

Comparing jsr166/src/jsr166e/extra/AtomicDouble.java (file contents):
Revision 1.8 by jsr166, Thu Oct 20 03:08:02 2011 UTC vs.
Revision 1.9 by jsr166, Thu Oct 20 16:33:25 2011 UTC

# Line 54 | Line 54 | public class AtomicDouble extends Number
54      /**
55       * Creates a new {@code AtomicDouble} with initial value {@code 0.0}.
56       */
57 <    public AtomicDouble() { this(0.0); }
57 >    public AtomicDouble() {
58 >        // assert doubleToRawLongBits(0.0) == 0L;
59 >    }
60  
61      /**
62       * Gets the current value.
# Line 121 | Line 123 | public class AtomicDouble extends Number
123       * if the current value is <a href="#bitEquals">bitwise equal</a>
124       * to the expected value.
125       *
126 <     * <p>May <a href="package-summary.html#Spurious">fail spuriously</a>
126 >     * <p>May <a
127 >     * href="http://download.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/package-summary.html#Spurious">
128 >     * fail spuriously</a>
129       * and does not provide ordering guarantees, so is only rarely an
130       * appropriate alternative to {@code compareAndSet}.
131       *
# Line 180 | Line 184 | public class AtomicDouble extends Number
184       * after a narrowing primitive conversion.
185       */
186      public int intValue() {
187 <        return (int)get();
187 >        return (int) get();
188      }
189  
190      /**
# Line 188 | Line 192 | public class AtomicDouble extends Number
192       * after a narrowing primitive conversion.
193       */
194      public long longValue() {
195 <        return (long)get();
195 >        return (long) get();
196      }
197  
198      /**
# Line 196 | Line 200 | public class AtomicDouble extends Number
200       * after a narrowing primitive conversion.
201       */
202      public float floatValue() {
203 <        return (float)get();
203 >        return (float) get();
204      }
205  
206      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines