8024103: AtomicLongArray getAndAccumulate/accumulateAndGet have int type for new value arg

Reviewed-by: alanb, psandoz
This commit is contained in:
Chris Hegarty 2013-09-02 14:02:35 +01:00
parent 1cff90b335
commit ff0317b098

View File

@ -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;