8024103: AtomicLongArray getAndAccumulate/accumulateAndGet have int type for new value arg
Reviewed-by: alanb, psandoz
This commit is contained in:
parent
1cff90b335
commit
ff0317b098
@ -303,7 +303,7 @@ public class AtomicLongArray implements java.io.Serializable {
|
||||
* @return the previous value
|
||||
* @since 1.8
|
||||
*/
|
||||
public final long getAndAccumulate(int i, int x,
|
||||
public final long getAndAccumulate(int i, long x,
|
||||
LongBinaryOperator accumulatorFunction) {
|
||||
long offset = checkedByteOffset(i);
|
||||
long prev, next;
|
||||
@ -329,7 +329,7 @@ public class AtomicLongArray implements java.io.Serializable {
|
||||
* @return the updated value
|
||||
* @since 1.8
|
||||
*/
|
||||
public final long accumulateAndGet(int i, int x,
|
||||
public final long accumulateAndGet(int i, long x,
|
||||
LongBinaryOperator accumulatorFunction) {
|
||||
long offset = checkedByteOffset(i);
|
||||
long prev, next;
|
||||
|
Loading…
x
Reference in New Issue
Block a user