From fb970d92bc737afe34e23a0667b1737c6b105fde Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 2 Aug 2015 02:09:48 +0200 Subject: Fix Bitfield.put(..): Return previous value --- src/java/jogamp/common/util/SyncedBitfield.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/java/jogamp/common/util/SyncedBitfield.java') 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 -- cgit v1.2.3