Skip to content

Commit

Permalink
8224176: Fix inconsistencies in @jls tags in java.util.concurrent
Browse files Browse the repository at this point in the history
Reviewed-by: martin, darcy, jjg
  • Loading branch information
Doug Lea committed May 24, 2019
1 parent 579854e commit 5892b06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ public int intValue() {
* Returns the current value of this {@code AtomicInteger} as a
* {@code long} after a widening primitive conversion,
* with memory effects as specified by {@link VarHandle#getVolatile}.
* @jls 5.1.2 Widening Primitive Conversions
* @jls 5.1.2 Widening Primitive Conversion
*/
public long longValue() {
return (long)get();
Expand All @@ -370,7 +370,7 @@ public long longValue() {
* Returns the current value of this {@code AtomicInteger} as a
* {@code float} after a widening primitive conversion,
* with memory effects as specified by {@link VarHandle#getVolatile}.
* @jls 5.1.2 Widening Primitive Conversions
* @jls 5.1.2 Widening Primitive Conversion
*/
public float floatValue() {
return (float)get();
Expand All @@ -380,7 +380,7 @@ public float floatValue() {
* Returns the current value of this {@code AtomicInteger} as a
* {@code double} after a widening primitive conversion,
* with memory effects as specified by {@link VarHandle#getVolatile}.
* @jls 5.1.2 Widening Primitive Conversions
* @jls 5.1.2 Widening Primitive Conversion
*/
public double doubleValue() {
return (double)get();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public String toString() {
* Returns the current value of this {@code AtomicLong} as an {@code int}
* after a narrowing primitive conversion,
* with memory effects as specified by {@link VarHandle#getVolatile}.
* @jls 5.1.3 Narrowing Primitive Conversions
* @jls 5.1.3 Narrowing Primitive Conversion
*/
public int intValue() {
return (int)get();
Expand All @@ -383,7 +383,7 @@ public long longValue() {
* Returns the current value of this {@code AtomicLong} as a {@code float}
* after a widening primitive conversion,
* with memory effects as specified by {@link VarHandle#getVolatile}.
* @jls 5.1.2 Widening Primitive Conversions
* @jls 5.1.2 Widening Primitive Conversion
*/
public float floatValue() {
return (float)get();
Expand All @@ -393,7 +393,7 @@ public float floatValue() {
* Returns the current value of this {@code AtomicLong} as a {@code double}
* after a widening primitive conversion,
* with memory effects as specified by {@link VarHandle#getVolatile}.
* @jls 5.1.2 Widening Primitive Conversions
* @jls 5.1.2 Widening Primitive Conversion
*/
public double doubleValue() {
return (double)get();
Expand Down

0 comments on commit 5892b06

Please sign in to comment.