summaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/common/util/TestBitstream04.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-07-03 16:06:47 +0200
committerSven Gothel <[email protected]>2014-07-03 16:06:47 +0200
commitdf9ff7f340a5ab4e07efc613f5f264eeae63d4c7 (patch)
tree239ae276b82024b140428e6c0fe5d739fdd686a4 /src/junit/com/jogamp/common/util/TestBitstream04.java
parenteb47aaba63e3b1bf55f274a0f338f1010a017ae4 (diff)
Code Clean-Up based on our Recommended Settings (jogamp-scripting c47bc86ae2ee268a1f38c5580d11f93d7f8d6e74)
Code Clean-Up based on our Recommended Settings (jogamp-scripting c47bc86ae2ee268a1f38c5580d11f93d7f8d6e74) - Change non static accesses to static members using declaring type - Change indirect accesses to static members to direct accesses (accesses through subtypes) - Add final modifier to private fields - Add final modifier to method parameters - Add final modifier to local variables - Remove unnecessary casts - Remove unnecessary '$NON-NLS$' tags - Remove trailing white spaces on all lines
Diffstat (limited to 'src/junit/com/jogamp/common/util/TestBitstream04.java')
-rw-r--r--src/junit/com/jogamp/common/util/TestBitstream04.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/junit/com/jogamp/common/util/TestBitstream04.java b/src/junit/com/jogamp/common/util/TestBitstream04.java
index 196db71..f61ebea 100644
--- a/src/junit/com/jogamp/common/util/TestBitstream04.java
+++ b/src/junit/com/jogamp/common/util/TestBitstream04.java
@@ -60,7 +60,7 @@ public class TestBitstream04 extends JunitTracer {
test01Int32BitsImpl(ByteOrder.BIG_ENDIAN);
test01Int32BitsImpl(ByteOrder.LITTLE_ENDIAN);
}
- void test01Int32BitsImpl(ByteOrder byteOrder) throws IOException {
+ void test01Int32BitsImpl(final ByteOrder byteOrder) throws IOException {
test01Int32BitsAlignedImpl(byteOrder, 0, 0);
test01Int32BitsAlignedImpl(byteOrder, 1, 1);
test01Int32BitsAlignedImpl(byteOrder, -1, -1);
@@ -70,7 +70,7 @@ public class TestBitstream04 extends JunitTracer {
test01Int32BitsAlignedImpl(byteOrder, Integer.MAX_VALUE, Integer.MAX_VALUE);
test01Int32BitsAlignedImpl(byteOrder, 0xffffffff, -1);
}
- void test01Int32BitsAlignedImpl(ByteOrder byteOrder, int val32, int expUInt32Int) throws IOException {
+ void test01Int32BitsAlignedImpl(final ByteOrder byteOrder, final int val32, final int expUInt32Int) throws IOException {
// Test with buffer defined value
final ByteBuffer bb = ByteBuffer.allocate(Buffers.SIZEOF_INT);
if( null != byteOrder ) {
@@ -120,7 +120,7 @@ public class TestBitstream04 extends JunitTracer {
test02Int32BitsUnalignedImpl(ByteOrder.BIG_ENDIAN);
test02Int32BitsUnalignedImpl(ByteOrder.LITTLE_ENDIAN);
}
- void test02Int32BitsUnalignedImpl(ByteOrder byteOrder) throws IOException {
+ void test02Int32BitsUnalignedImpl(final ByteOrder byteOrder) throws IOException {
test02Int32BitsUnalignedImpl(byteOrder, 0);
test02Int32BitsUnalignedImpl(byteOrder, 1);
test02Int32BitsUnalignedImpl(byteOrder, 7);
@@ -129,7 +129,7 @@ public class TestBitstream04 extends JunitTracer {
test02Int32BitsUnalignedImpl(byteOrder, 24);
test02Int32BitsUnalignedImpl(byteOrder, 25);
}
- void test02Int32BitsUnalignedImpl(ByteOrder byteOrder, final int preBits) throws IOException {
+ void test02Int32BitsUnalignedImpl(final ByteOrder byteOrder, final int preBits) throws IOException {
test02Int32BitsUnalignedImpl(byteOrder, preBits, 0, 0);
test02Int32BitsUnalignedImpl(byteOrder, preBits, 1, 1);
test02Int32BitsUnalignedImpl(byteOrder, preBits, -1, -1);
@@ -139,7 +139,7 @@ public class TestBitstream04 extends JunitTracer {
test02Int32BitsUnalignedImpl(byteOrder, preBits, Integer.MAX_VALUE, Integer.MAX_VALUE);
test02Int32BitsUnalignedImpl(byteOrder, preBits, 0xffffffff, -1);
}
- void test02Int32BitsUnalignedImpl(ByteOrder byteOrder, int preBits, int val32, int expUInt32Int) throws IOException {
+ void test02Int32BitsUnalignedImpl(final ByteOrder byteOrder, final int preBits, final int val32, final int expUInt32Int) throws IOException {
final int preBytes = ( preBits + 7 ) >>> 3;
final int byteCount = preBytes + Buffers.SIZEOF_INT;
final ByteBuffer bb = ByteBuffer.allocate(byteCount);
@@ -171,8 +171,8 @@ public class TestBitstream04 extends JunitTracer {
Assert.assertEquals(expUInt32Int, uint32_i);
}
- public static void main(String args[]) throws IOException {
- String tstname = TestBitstream04.class.getName();
+ public static void main(final String args[]) throws IOException {
+ final String tstname = TestBitstream04.class.getName();
org.junit.runner.JUnitCore.main(tstname);
}