commit | 6a4237d62aa088e671ecb8ccfcb14c3249ea3d88 | [log] [tgz] |
---|---|---|
author | Madan Jampani <madan@onlab.us> | Sun Jun 26 20:17:26 2016 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Mon Jun 27 03:20:54 2016 +0000 |
tree | a4174ed34d6e0cab7a00ae0dce2838396c0801c7 | |
parent | 1cbd65e1e396cd2542ee8d86f50fa7c4615744b7 [diff] |
Fix AtomicCounter addAndGet Change-Id: I51e87a327b19956d76f9916a376414b5eea38929
diff --git a/core/api/src/main/java/org/onosproject/store/primitives/DefaultAtomicCounter.java b/core/api/src/main/java/org/onosproject/store/primitives/DefaultAtomicCounter.java index 3697074..5dae05c 100644 --- a/core/api/src/main/java/org/onosproject/store/primitives/DefaultAtomicCounter.java +++ b/core/api/src/main/java/org/onosproject/store/primitives/DefaultAtomicCounter.java
@@ -56,7 +56,7 @@ @Override public long addAndGet(long delta) { - return complete(asyncCounter.getAndAdd(delta)); + return complete(asyncCounter.addAndGet(delta)); } @Override