From 0caa9474833a224060b9e4deefb7e0b171a8f273 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 30 Jul 2015 02:53:59 +0200 Subject: Bitfield: Use IndexOutOfBoundsException instead of ArrayIndexOutOfBoundsException --- src/java/com/jogamp/common/util/Bitfield.java | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/java/com/jogamp/common/util') diff --git a/src/java/com/jogamp/common/util/Bitfield.java b/src/java/com/jogamp/common/util/Bitfield.java index 9155603..8c31fc6 100644 --- a/src/java/com/jogamp/common/util/Bitfield.java +++ b/src/java/com/jogamp/common/util/Bitfield.java @@ -81,46 +81,46 @@ public interface Bitfield { /** * Returns the 32 bit integer mask w/ its lowest bit at the bit number {@code rightBitnum}. * @param rightBitnum bit number denoting the position of the lowest bit, restricted to [0..{@link #getStorageBitSize()}-32]. - * @throws ArrayIndexOutOfBoundsException if {@code rightBitnum} is out of bounds + * @throws IndexOutOfBoundsException if {@code rightBitnum} is out of bounds */ - int getInt32(final int rightBitnum) throws ArrayIndexOutOfBoundsException; + int getInt32(final int rightBitnum) throws IndexOutOfBoundsException; /** * Sets the given 32 bit integer mask w/ its lowest bit at the bit number {@code rightBitnum}. * @param rightBitnum bit number denoting the position of the lowest bit, restricted to [0..{@link #getStorageBitSize()}-32]. * @param mask denoting the 32 bit mask value to store - * @throws ArrayIndexOutOfBoundsException if {@code rightBitnum} is out of bounds + * @throws IndexOutOfBoundsException if {@code rightBitnum} is out of bounds */ - void putInt32(final int rightBitnum, final int mask) throws ArrayIndexOutOfBoundsException; + void putInt32(final int rightBitnum, final int mask) throws IndexOutOfBoundsException; /** * Return true if the bit at position bitnum is set, otherwise false. * @param bitnum bit number, restricted to [0..{@link #getStorageBitSize()}-1]. - * @throws ArrayIndexOutOfBoundsException if {@code bitnum} is out of bounds + * @throws IndexOutOfBoundsException if {@code bitnum} is out of bounds */ - boolean get(final int bitnum) throws ArrayIndexOutOfBoundsException; + boolean get(final int bitnum) throws IndexOutOfBoundsException; /** * Set or clear the bit at position bitnum according to bit * and return the previous value. * @param bitnum bit number, restricted to [0..{@link #getStorageBitSize()}-1]. - * @throws ArrayIndexOutOfBoundsException if {@code bitnum} is out of bounds + * @throws IndexOutOfBoundsException if {@code bitnum} is out of bounds */ - boolean put(final int bitnum, final boolean bit) throws ArrayIndexOutOfBoundsException; + boolean put(final int bitnum, final boolean bit) throws IndexOutOfBoundsException; /** * Set the bit at position bitnum according to bit. * @param bitnum bit number, restricted to [0..{@link #getStorageBitSize()}-1]. - * @throws ArrayIndexOutOfBoundsException if {@code bitnum} is out of bounds + * @throws IndexOutOfBoundsException if {@code bitnum} is out of bounds */ - void set(final int bitnum) throws ArrayIndexOutOfBoundsException; + void set(final int bitnum) throws IndexOutOfBoundsException; /** * Clear the bit at position bitnum according to bit. * @param bitnum bit number, restricted to [0..{@link #getStorageBitSize()}-1]. - * @throws ArrayIndexOutOfBoundsException if {@code bitnum} is out of bounds + * @throws IndexOutOfBoundsException if {@code bitnum} is out of bounds */ - void clear(final int bitnum) throws ArrayIndexOutOfBoundsException; + void clear(final int bitnum) throws IndexOutOfBoundsException; /** * Returns the number of set bits within this bitfield. -- cgit v1.2.3