8224176: Fix inconsistencies in @jls tags in java.util.concurrent
authordl
Fri, 24 May 2019 08:43:40 -0700
changeset 55033 c72451a9f67e
parent 55032 11d9cd8d99f3
child 55034 f46be958c4ac
8224176: Fix inconsistencies in @jls tags in java.util.concurrent Reviewed-by: martin, darcy, jjg
src/java.base/share/classes/java/util/concurrent/atomic/AtomicInteger.java
src/java.base/share/classes/java/util/concurrent/atomic/AtomicLong.java
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicInteger.java	Fri May 24 08:39:37 2019 -0700
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicInteger.java	Fri May 24 08:43:40 2019 -0700
@@ -360,7 +360,7 @@
      * 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();
@@ -370,7 +370,7 @@
      * 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();
@@ -380,7 +380,7 @@
      * 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();
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLong.java	Fri May 24 08:39:37 2019 -0700
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLong.java	Fri May 24 08:43:40 2019 -0700
@@ -364,7 +364,7 @@
      * 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();
@@ -383,7 +383,7 @@
      * 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();
@@ -393,7 +393,7 @@
      * 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();