summaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/common/os/elf/Ehdr.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/Ehdr.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/Ehdr.java')
-rw-r--r--src/java/jogamp/common/os/elf/Ehdr.java36
1 files changed, 16 insertions, 20 deletions
diff --git a/src/java/jogamp/common/os/elf/Ehdr.java b/src/java/jogamp/common/os/elf/Ehdr.java
index d787f67..e12ef4f 100644
--- a/src/java/jogamp/common/os/elf/Ehdr.java
+++ b/src/java/jogamp/common/os/elf/Ehdr.java
@@ -3,10 +3,6 @@
package jogamp.common.os.elf;
-import java.nio.*;
-
-import com.jogamp.gluegen.runtime.*;
-import com.jogamp.common.os.*;
import com.jogamp.common.nio.*;
import jogamp.common.os.MachineDescriptionRuntime;
@@ -41,11 +37,11 @@ public class Ehdr {
return create(Buffers.newDirectByteBuffer(size()));
}
- public static Ehdr create(java.nio.ByteBuffer buf) {
+ public static Ehdr create(final java.nio.ByteBuffer buf) {
return new Ehdr(buf);
}
- Ehdr(java.nio.ByteBuffer buf) {
+ Ehdr(final java.nio.ByteBuffer buf) {
accessor = new StructAccessor(buf);
}
@@ -53,14 +49,14 @@ public class Ehdr {
return accessor.getBuffer();
}
- public Ehdr setE_ident(byte[] val) {
+ public Ehdr setE_ident(final byte[] val) {
accessor.setBytesAt(e_ident_offset[mdIdx], val); return this;
}
public byte[] getE_ident() {
return accessor.getBytesAt(e_ident_offset[mdIdx], new byte[16]); }
- public Ehdr setE_type(short val) {
+ public Ehdr setE_type(final short val) {
accessor.setShortAt(e_type_offset[mdIdx], val);
return this;
}
@@ -69,7 +65,7 @@ public class Ehdr {
return accessor.getShortAt(e_type_offset[mdIdx]);
}
- public Ehdr setE_machine(short val) {
+ public Ehdr setE_machine(final short val) {
accessor.setShortAt(e_machine_offset[mdIdx], val);
return this;
}
@@ -78,7 +74,7 @@ public class Ehdr {
return accessor.getShortAt(e_machine_offset[mdIdx]);
}
- public Ehdr setE_version(int val) {
+ public Ehdr setE_version(final int val) {
accessor.setIntAt(e_version_offset[mdIdx], val);
return this;
}
@@ -87,7 +83,7 @@ public class Ehdr {
return accessor.getIntAt(e_version_offset[mdIdx]);
}
- public Ehdr setE_entry(long val) {
+ public Ehdr setE_entry(final long val) {
accessor.setLongAt(e_entry_offset[mdIdx], val, MachineDescriptionRuntime.getStatic().md.longSizeInBytes());
return this;
}
@@ -96,7 +92,7 @@ public class Ehdr {
return accessor.getLongAt(e_entry_offset[mdIdx], MachineDescriptionRuntime.getStatic().md.longSizeInBytes());
}
- public Ehdr setE_phoff(long val) {
+ public Ehdr setE_phoff(final long val) {
accessor.setLongAt(e_phoff_offset[mdIdx], val, MachineDescriptionRuntime.getStatic().md.longSizeInBytes());
return this;
}
@@ -105,7 +101,7 @@ public class Ehdr {
return accessor.getLongAt(e_phoff_offset[mdIdx], MachineDescriptionRuntime.getStatic().md.longSizeInBytes());
}
- public Ehdr setE_shoff(long val) {
+ public Ehdr setE_shoff(final long val) {
accessor.setLongAt(e_shoff_offset[mdIdx], val, MachineDescriptionRuntime.getStatic().md.longSizeInBytes());
return this;
}
@@ -114,7 +110,7 @@ public class Ehdr {
return accessor.getLongAt(e_shoff_offset[mdIdx], MachineDescriptionRuntime.getStatic().md.longSizeInBytes());
}
- public Ehdr setE_flags(int val) {
+ public Ehdr setE_flags(final int val) {
accessor.setIntAt(e_flags_offset[mdIdx], val);
return this;
}
@@ -123,7 +119,7 @@ public class Ehdr {
return accessor.getIntAt(e_flags_offset[mdIdx]);
}
- public Ehdr setE_ehsize(short val) {
+ public Ehdr setE_ehsize(final short val) {
accessor.setShortAt(e_ehsize_offset[mdIdx], val);
return this;
}
@@ -132,7 +128,7 @@ public class Ehdr {
return accessor.getShortAt(e_ehsize_offset[mdIdx]);
}
- public Ehdr setE_phentsize(short val) {
+ public Ehdr setE_phentsize(final short val) {
accessor.setShortAt(e_phentsize_offset[mdIdx], val);
return this;
}
@@ -141,7 +137,7 @@ public class Ehdr {
return accessor.getShortAt(e_phentsize_offset[mdIdx]);
}
- public Ehdr setE_phnum(short val) {
+ public Ehdr setE_phnum(final short val) {
accessor.setShortAt(e_phnum_offset[mdIdx], val);
return this;
}
@@ -150,7 +146,7 @@ public class Ehdr {
return accessor.getShortAt(e_phnum_offset[mdIdx]);
}
- public Ehdr setE_shentsize(short val) {
+ public Ehdr setE_shentsize(final short val) {
accessor.setShortAt(e_shentsize_offset[mdIdx], val);
return this;
}
@@ -159,7 +155,7 @@ public class Ehdr {
return accessor.getShortAt(e_shentsize_offset[mdIdx]);
}
- public Ehdr setE_shnum(short val) {
+ public Ehdr setE_shnum(final short val) {
accessor.setShortAt(e_shnum_offset[mdIdx], val);
return this;
}
@@ -168,7 +164,7 @@ public class Ehdr {
return accessor.getShortAt(e_shnum_offset[mdIdx]);
}
- public Ehdr setE_shstrndx(short val) {
+ public Ehdr setE_shstrndx(final short val) {
accessor.setShortAt(e_shstrndx_offset[mdIdx], val);
return this;
}