summaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/common/util/SyncedBitfield.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-08-02 02:09:48 +0200
committerSven Gothel <[email protected]>2015-08-02 02:09:48 +0200
commitfb970d92bc737afe34e23a0667b1737c6b105fde (patch)
tree292e9f38c8b57450ad7bafde7689ab3c4e1c3e47 /src/java/jogamp/common/util/SyncedBitfield.java
parentbea171a16539b16b493acc9cc0e102985e2939a6 (diff)
Fix Bitfield.put(..): Return previous value
Diffstat (limited to 'src/java/jogamp/common/util/SyncedBitfield.java')
-rw-r--r--src/java/jogamp/common/util/SyncedBitfield.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/jogamp/common/util/SyncedBitfield.java b/src/java/jogamp/common/util/SyncedBitfield.java
index c23d7ea..49c27b0 100644
--- a/src/java/jogamp/common/util/SyncedBitfield.java
+++ b/src/java/jogamp/common/util/SyncedBitfield.java
@@ -70,8 +70,8 @@ public class SyncedBitfield implements Bitfield {
}
@Override
- public final synchronized void put(final int bitnum, final boolean bit) throws IndexOutOfBoundsException {
- impl.put(bitnum, bit);
+ public final synchronized boolean put(final int bitnum, final boolean bit) throws IndexOutOfBoundsException {
+ return impl.put(bitnum, bit);
}
@Override