diff --git a/src/java.base/share/classes/java/lang/invoke/VarHandle.java b/src/java.base/share/classes/java/lang/invoke/VarHandle.java index 50be742ff33..54a5c602d3c 100644 --- a/src/java.base/share/classes/java/lang/invoke/VarHandle.java +++ b/src/java.base/share/classes/java/lang/invoke/VarHandle.java @@ -806,7 +806,7 @@ public abstract sealed class VarHandle implements Constable * {@code (CT1 ct1, ..., CTn ctn, T expectedValue, T newValue)} * , statically represented using varargs. * @return {@code true} if successful, otherwise {@code false} if the - * witness value was not the same as the {@code expectedValue}. + * witness value was not the same as the {@code expectedValue}. * @throws UnsupportedOperationException if the access mode is unsupported * for this VarHandle. * @throws WrongMethodTypeException if the access mode type does not @@ -839,7 +839,7 @@ public abstract sealed class VarHandle implements Constable * @param args the signature-polymorphic parameter list of the form * {@code (CT1 ct1, ..., CTn ctn, T expectedValue, T newValue)} * , statically represented using varargs. - * @return the signature-polymorphic result that is the witness value, which + * @return the signature-polymorphic result that is the witness value, which * will be the same as the {@code expectedValue} if successful * , statically represented using {@code Object}. * @throws UnsupportedOperationException if the access mode is unsupported @@ -874,7 +874,7 @@ public abstract sealed class VarHandle implements Constable * @param args the signature-polymorphic parameter list of the form * {@code (CT1 ct1, ..., CTn ctn, T expectedValue, T newValue)} * , statically represented using varargs. - * @return the signature-polymorphic result that is the witness value, which + * @return the signature-polymorphic result that is the witness value, which * will be the same as the {@code expectedValue} if successful * , statically represented using {@code Object}. * @throws UnsupportedOperationException if the access mode is unsupported @@ -909,7 +909,7 @@ public abstract sealed class VarHandle implements Constable * @param args the signature-polymorphic parameter list of the form * {@code (CT1 ct1, ..., CTn ctn, T expectedValue, T newValue)} * , statically represented using varargs. - * @return the signature-polymorphic result that is the witness value, which + * @return the signature-polymorphic result that is the witness value, which * will be the same as the {@code expectedValue} if successful * , statically represented using {@code Object}. * @throws UnsupportedOperationException if the access mode is unsupported @@ -936,7 +936,7 @@ public abstract sealed class VarHandle implements Constable * {@link #get}. * *
This operation may fail spuriously (typically, due to memory - * contention) even if the witness value does match the expected value. + * contention) even if the witness value does match the expected value. * *
The method signature is of the form {@code (CT1 ct1, ..., CTn ctn, T expectedValue, T newValue)boolean}. * @@ -949,7 +949,7 @@ public abstract sealed class VarHandle implements Constable * {@code (CT1 ct1, ..., CTn ctn, T expectedValue, T newValue)} * , statically represented using varargs. * @return {@code true} if successful, otherwise {@code false} if the - * witness value was not the same as the {@code expectedValue} or if this + * witness value was not the same as the {@code expectedValue} or if this * operation spuriously failed. * @throws UnsupportedOperationException if the access mode is unsupported * for this VarHandle. @@ -973,7 +973,7 @@ public abstract sealed class VarHandle implements Constable * {@link #getVolatile}. * *
This operation may fail spuriously (typically, due to memory - * contention) even if the witness value does match the expected value. + * contention) even if the witness value does match the expected value. * *
The method signature is of the form {@code (CT1 ct1, ..., CTn ctn, T expectedValue, T newValue)boolean}. * @@ -986,7 +986,7 @@ public abstract sealed class VarHandle implements Constable * {@code (CT1 ct1, ..., CTn ctn, T expectedValue, T newValue)} * , statically represented using varargs. * @return {@code true} if successful, otherwise {@code false} if the - * witness value was not the same as the {@code expectedValue} or if this + * witness value was not the same as the {@code expectedValue} or if this * operation spuriously failed. * @throws UnsupportedOperationException if the access mode is unsupported * for this VarHandle. @@ -1010,7 +1010,7 @@ public abstract sealed class VarHandle implements Constable * {@link #getAcquire}. * *
This operation may fail spuriously (typically, due to memory - * contention) even if the witness value does match the expected value. + * contention) even if the witness value does match the expected value. * *
The method signature is of the form {@code (CT1 ct1, ..., CTn ctn, T expectedValue, T newValue)boolean}. * @@ -1024,7 +1024,7 @@ public abstract sealed class VarHandle implements Constable * {@code (CT1 ct1, ..., CTn ctn, T expectedValue, T newValue)} * , statically represented using varargs. * @return {@code true} if successful, otherwise {@code false} if the - * witness value was not the same as the {@code expectedValue} or if this + * witness value was not the same as the {@code expectedValue} or if this * operation spuriously failed. * @throws UnsupportedOperationException if the access mode is unsupported * for this VarHandle. @@ -1048,7 +1048,7 @@ public abstract sealed class VarHandle implements Constable * {@link #get}. * *
This operation may fail spuriously (typically, due to memory - * contention) even if the witness value does match the expected value. + * contention) even if the witness value does match the expected value. * *
The method signature is of the form {@code (CT1 ct1, ..., CTn ctn, T expectedValue, T newValue)boolean}.
*
@@ -1062,7 +1062,7 @@ public abstract sealed class VarHandle implements Constable
* {@code (CT1 ct1, ..., CTn ctn, T expectedValue, T newValue)}
* , statically represented using varargs.
* @return {@code true} if successful, otherwise {@code false} if the
- * witness value was not the same as the {@code expectedValue} or if this
+ * witness value was not the same as the {@code expectedValue} or if this
* operation spuriously failed.
* @throws UnsupportedOperationException if the access mode is unsupported
* for this VarHandle.
diff --git a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicBoolean.java b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicBoolean.java
index 1555c22caa4..d8cb9869afe 100644
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicBoolean.java
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicBoolean.java
@@ -260,7 +260,7 @@ public class AtomicBoolean implements java.io.Serializable {
*
* @param expectedValue the expected value
* @param newValue the new value
- * @return the witness value, which will be the same as the
+ * @return the witness value, which will be the same as the
* expected value if successful
* @since 9
*/
@@ -278,7 +278,7 @@ public class AtomicBoolean implements java.io.Serializable {
*
* @param expectedValue the expected value
* @param newValue the new value
- * @return the witness value, which will be the same as the
+ * @return the witness value, which will be the same as the
* expected value if successful
* @since 9
*/
@@ -296,7 +296,7 @@ public class AtomicBoolean implements java.io.Serializable {
*
* @param expectedValue the expected value
* @param newValue the new value
- * @return the witness value, which will be the same as the
+ * @return the witness value, which will be the same as the
* expected value if successful
* @since 9
*/
diff --git a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicInteger.java b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicInteger.java
index fbfb56425b5..4f08ed3f64b 100644
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicInteger.java
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicInteger.java
@@ -465,7 +465,7 @@ public class AtomicInteger extends Number implements java.io.Serializable {
*
* @param expectedValue the expected value
* @param newValue the new value
- * @return the witness value, which will be the same as the
+ * @return the witness value, which will be the same as the
* expected value if successful
* @since 9
*/
@@ -481,7 +481,7 @@ public class AtomicInteger extends Number implements java.io.Serializable {
*
* @param expectedValue the expected value
* @param newValue the new value
- * @return the witness value, which will be the same as the
+ * @return the witness value, which will be the same as the
* expected value if successful
* @since 9
*/
@@ -497,7 +497,7 @@ public class AtomicInteger extends Number implements java.io.Serializable {
*
* @param expectedValue the expected value
* @param newValue the new value
- * @return the witness value, which will be the same as the
+ * @return the witness value, which will be the same as the
* expected value if successful
* @since 9
*/
diff --git a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicIntegerArray.java b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicIntegerArray.java
index f59327da98a..676788e4204 100644
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicIntegerArray.java
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicIntegerArray.java
@@ -470,7 +470,7 @@ public class AtomicIntegerArray implements java.io.Serializable {
* @param i the index
* @param expectedValue the expected value
* @param newValue the new value
- * @return the witness value, which will be the same as the
+ * @return the witness value, which will be the same as the
* expected value if successful
* @since 9
*/
@@ -488,7 +488,7 @@ public class AtomicIntegerArray implements java.io.Serializable {
* @param i the index
* @param expectedValue the expected value
* @param newValue the new value
- * @return the witness value, which will be the same as the
+ * @return the witness value, which will be the same as the
* expected value if successful
* @since 9
*/
@@ -506,7 +506,7 @@ public class AtomicIntegerArray implements java.io.Serializable {
* @param i the index
* @param expectedValue the expected value
* @param newValue the new value
- * @return the witness value, which will be the same as the
+ * @return the witness value, which will be the same as the
* expected value if successful
* @since 9
*/
diff --git a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLong.java b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLong.java
index b215dcb112a..926b773827c 100644
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLong.java
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLong.java
@@ -478,7 +478,7 @@ public class AtomicLong extends Number implements java.io.Serializable {
*
* @param expectedValue the expected value
* @param newValue the new value
- * @return the witness value, which will be the same as the
+ * @return the witness value, which will be the same as the
* expected value if successful
* @since 9
*/
@@ -494,7 +494,7 @@ public class AtomicLong extends Number implements java.io.Serializable {
*
* @param expectedValue the expected value
* @param newValue the new value
- * @return the witness value, which will be the same as the
+ * @return the witness value, which will be the same as the
* expected value if successful
* @since 9
*/
@@ -510,7 +510,7 @@ public class AtomicLong extends Number implements java.io.Serializable {
*
* @param expectedValue the expected value
* @param newValue the new value
- * @return the witness value, which will be the same as the
+ * @return the witness value, which will be the same as the
* expected value if successful
* @since 9
*/
diff --git a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLongArray.java b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLongArray.java
index 24e42a1ea81..af2ff6729fd 100644
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLongArray.java
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLongArray.java
@@ -470,7 +470,7 @@ public class AtomicLongArray implements java.io.Serializable {
* @param i the index
* @param expectedValue the expected value
* @param newValue the new value
- * @return the witness value, which will be the same as the
+ * @return the witness value, which will be the same as the
* expected value if successful
* @since 9
*/
@@ -488,7 +488,7 @@ public class AtomicLongArray implements java.io.Serializable {
* @param i the index
* @param expectedValue the expected value
* @param newValue the new value
- * @return the witness value, which will be the same as the
+ * @return the witness value, which will be the same as the
* expected value if successful
* @since 9
*/
@@ -506,7 +506,7 @@ public class AtomicLongArray implements java.io.Serializable {
* @param i the index
* @param expectedValue the expected value
* @param newValue the new value
- * @return the witness value, which will be the same as the
+ * @return the witness value, which will be the same as the
* expected value if successful
* @since 9
*/
diff --git a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicReference.java b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicReference.java
index 03dd039ce45..b2c692df5e7 100644
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicReference.java
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicReference.java
@@ -353,7 +353,7 @@ public class AtomicReference