diff options
author | Sven Gothel <[email protected]> | 2014-07-08 22:10:03 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-07-08 22:10:03 +0200 |
commit | de53d193c86a02a3cdc46c5c8758192d957d1c67 (patch) | |
tree | 8be8e36381d6f25850b887c9ff0df7e9c2279487 /src/jogl/classes/jogamp/opengl/glu/mipmap/ExtractSByte.java | |
parent | be2b608e22d9a2a3a80eb547bee6180c2ca22678 (diff) |
Findbugs: Misc minor issues (see below)
- remove duplicate code in branch
- Use Type.valueOf(primitive)
- Don't use array.toString() directly
- remove dead code
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/glu/mipmap/ExtractSByte.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/glu/mipmap/ExtractSByte.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/jogl/classes/jogamp/opengl/glu/mipmap/ExtractSByte.java b/src/jogl/classes/jogamp/opengl/glu/mipmap/ExtractSByte.java index e9b021413..76c34330f 100644 --- a/src/jogl/classes/jogamp/opengl/glu/mipmap/ExtractSByte.java +++ b/src/jogl/classes/jogamp/opengl/glu/mipmap/ExtractSByte.java @@ -58,9 +58,7 @@ public class ExtractSByte implements ExtractPrimitive { @Override public double extract( final boolean isSwap, final ByteBuffer sbyte ) { - final byte b = sbyte.get(); - assert( b <= 127 ); - return( b ); + return sbyte.get(); // <= 127 } @Override |