# HG changeset patch # User chegar # Date 1378126955 -3600 # Node ID c5a8e71fbdb6f64939f9702c03d070d8b705fef8 # Parent 05e90dbeecd4b8cede12e5fc926e4330d19c91f1 8024103: AtomicLongArray getAndAccumulate/accumulateAndGet have int type for new value arg Reviewed-by: alanb, psandoz diff -r 05e90dbeecd4 -r c5a8e71fbdb6 jdk/src/share/classes/java/util/concurrent/atomic/AtomicLongArray.java --- a/jdk/src/share/classes/java/util/concurrent/atomic/AtomicLongArray.java Sun Sep 01 20:00:03 2013 -0700 +++ b/jdk/src/share/classes/java/util/concurrent/atomic/AtomicLongArray.java Mon Sep 02 14:02:35 2013 +0100 @@ -303,7 +303,7 @@ * @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 @@ * @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;