summaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/common/util/TestBitstream01.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/TestBitstream01.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/TestBitstream01.java')
-rw-r--r--src/junit/com/jogamp/common/util/TestBitstream01.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/junit/com/jogamp/common/util/TestBitstream01.java b/src/junit/com/jogamp/common/util/TestBitstream01.java
index a8ae4a5..f0415bc 100644
--- a/src/junit/com/jogamp/common/util/TestBitstream01.java
+++ b/src/junit/com/jogamp/common/util/TestBitstream01.java
@@ -55,7 +55,7 @@ import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class TestBitstream01 extends JunitTracer {
- Bitstream<ByteBuffer> getTestStream(final boolean msbFirst, int preBits, final int skipBits, final int postBits) throws IOException {
+ Bitstream<ByteBuffer> getTestStream(final boolean msbFirst, final int preBits, final int skipBits, final int postBits) throws IOException {
final int byteCount = ( preBits + skipBits + postBits + 7 ) / 8;
final ByteBuffer bbTest = ByteBuffer.allocate(byteCount);
final Bitstream.ByteBufferStream bbsTest = new Bitstream.ByteBufferStream(bbTest);
@@ -75,7 +75,7 @@ public class TestBitstream01 extends JunitTracer {
return bsTest;
}
- String getTestStreamResultAsString(final boolean msbFirst, int preBits, final int skipBits, final int postBits) {
+ String getTestStreamResultAsString(final boolean msbFirst, final int preBits, final int skipBits, final int postBits) {
final String pre, post;
if( msbFirst ) {
pre = testStringMSB.substring(0, preBits);
@@ -149,7 +149,7 @@ public class TestBitstream01 extends JunitTracer {
return sbRead.toString();
}
- void testLinearBitsImpl(final boolean msbFirst, int preBits, int skipBits, final int postBits) throws IOException {
+ void testLinearBitsImpl(final boolean msbFirst, final int preBits, final int skipBits, final int postBits) throws IOException {
final int totalBits = preBits+skipBits+postBits;
System.err.println("XXX TestLinearBits: msbFirst "+msbFirst+", preBits "+preBits+", skipBits "+skipBits+", postBits "+postBits+", totalBits "+totalBits);
@@ -254,7 +254,7 @@ public class TestBitstream01 extends JunitTracer {
testBulkBitsImpl(msbFirst, 16, 11, 5);
}
- void testBulkBitsImpl(final boolean msbFirst, int preBits, final int skipBits, final int postBits) throws IOException {
+ void testBulkBitsImpl(final boolean msbFirst, final int preBits, final int skipBits, final int postBits) throws IOException {
final int totalBits = preBits+skipBits+postBits;
System.err.println("XXX TestBulkBits: msbFirst "+msbFirst+", preBits "+preBits+", skipBits "+skipBits+", postBits "+postBits+", totalBits "+totalBits);
@@ -324,18 +324,18 @@ public class TestBitstream01 extends JunitTracer {
try {
bsTest.readBit(false);
- } catch (Exception e) {
+ } catch (final Exception e) {
Assert.assertNotNull(e);
}
try {
bsTest.writeBit(false, 1);
- } catch (Exception e) {
+ } catch (final Exception e) {
Assert.assertNotNull(e);
}
}
- public static void main(String args[]) throws IOException {
- String tstname = TestBitstream01.class.getName();
+ public static void main(final String args[]) throws IOException {
+ final String tstname = TestBitstream01.class.getName();
org.junit.runner.JUnitCore.main(tstname);
}