summaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/common/os/elf/IOUtils.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/java/jogamp/common/os/elf/IOUtils.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/java/jogamp/common/os/elf/IOUtils.java')
-rw-r--r--src/java/jogamp/common/os/elf/IOUtils.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/java/jogamp/common/os/elf/IOUtils.java b/src/java/jogamp/common/os/elf/IOUtils.java
index 57b7a48..62b47db 100644
--- a/src/java/jogamp/common/os/elf/IOUtils.java
+++ b/src/java/jogamp/common/os/elf/IOUtils.java
@@ -36,11 +36,11 @@ import com.jogamp.common.util.Bitstream;
class IOUtils {
static final long MAX_INT_VALUE = ( Integer.MAX_VALUE & 0xffffffffL ) ;
- static String toHexString(int i) { return "0x"+Integer.toHexString(i); }
+ static String toHexString(final int i) { return "0x"+Integer.toHexString(i); }
- static String toHexString(long i) { return "0x"+Long.toHexString(i); }
+ static String toHexString(final long i) { return "0x"+Long.toHexString(i); }
- static int shortToInt(short s) {
+ static int shortToInt(final short s) {
return s & 0x0000ffff;
}
@@ -57,7 +57,7 @@ class IOUtils {
in.readFully(out, offset, len);
}
- static void seek(final RandomAccessFile in, long newPos) throws IOException {
+ static void seek(final RandomAccessFile in, final long newPos) throws IOException {
in.seek(newPos);
}
@@ -83,7 +83,7 @@ class IOUtils {
* @return the parsed string
* @throws IndexOutOfBoundsException if <code>offset + remaining > sb.length</code>.
*/
- static String getString(final byte[] sb, final int offset, final int remaining, int[] offset_post) throws IndexOutOfBoundsException {
+ static String getString(final byte[] sb, final int offset, final int remaining, final int[] offset_post) throws IndexOutOfBoundsException {
Bitstream.checkBounds(sb, offset, remaining);
int strlen = 0;
for(; strlen < remaining && sb[strlen + offset] != 0; strlen++) { }
@@ -102,7 +102,7 @@ class IOUtils {
* @return the number of parsed strings
* @throws IndexOutOfBoundsException if <code>offset + remaining > sb.length</code>.
*/
- static int getStringCount(final byte[] sb, int offset, final int remaining) throws IndexOutOfBoundsException {
+ static int getStringCount(final byte[] sb, final int offset, final int remaining) throws IndexOutOfBoundsException {
Bitstream.checkBounds(sb, offset, remaining);
int strnum=0;
for(int i=0; i < remaining; i++) {
@@ -120,7 +120,7 @@ class IOUtils {
* @return the parsed strings
* @throws IndexOutOfBoundsException if <code>offset + remaining > sb.length</code>.
*/
- public static String[] getStrings(final byte[] sb, int offset, final int remaining) throws IndexOutOfBoundsException {
+ public static String[] getStrings(final byte[] sb, final int offset, final int remaining) throws IndexOutOfBoundsException {
final int strnum = getStringCount(sb, offset, remaining);
// System.err.println("XXX: strnum "+strnum+", sb_off "+sb_off+", sb_len "+sb_len);