changeset 8105:441da45931fa

8024103: AtomicLongArray getAndAccumulate/accumulateAndGet have int type for new value arg Reviewed-by: alanb, psandoz
author chegar
date Mon, 02 Sep 2013 14:02:35 +0100
parents ead6babac5a9
children 92d594a938ff
files src/share/classes/java/util/concurrent/atomic/AtomicLongArray.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/concurrent/atomic/AtomicLongArray.java	Sun Sep 01 20:00:03 2013 -0700
+++ b/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;