summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/os
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2013-10-17 21:34:47 -0700
committerHarvey Harrison <[email protected]>2013-10-17 21:34:47 -0700
commit7607867f0bba56792cad320695d6209b49acce9d (patch)
tree36f348562c272f5b994c12519c27d5b06b233566 /src/java/com/jogamp/common/os
parent791a2749886f02ec7b8db25bf8862e8269b96da5 (diff)
gluegen: add all missing @Override annotations
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/java/com/jogamp/common/os')
-rw-r--r--src/java/com/jogamp/common/os/DynamicLibraryBundle.java1
-rw-r--r--src/java/com/jogamp/common/os/MachineDescription.java1
-rw-r--r--src/java/com/jogamp/common/os/NativeLibrary.java5
-rw-r--r--src/java/com/jogamp/common/os/Platform.java1
4 files changed, 8 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/os/DynamicLibraryBundle.java b/src/java/com/jogamp/common/os/DynamicLibraryBundle.java
index a69fd7a..6ac8d94 100644
--- a/src/java/com/jogamp/common/os/DynamicLibraryBundle.java
+++ b/src/java/com/jogamp/common/os/DynamicLibraryBundle.java
@@ -119,6 +119,7 @@ public class DynamicLibraryBundle implements DynamicLookupHelper {
}
info.getLibLoaderExecutor().invoke(true, new Runnable() {
+ @Override
public void run() {
loadLibraries();
} } ) ;
diff --git a/src/java/com/jogamp/common/os/MachineDescription.java b/src/java/com/jogamp/common/os/MachineDescription.java
index aea9de1..8ff3ff7 100644
--- a/src/java/com/jogamp/common/os/MachineDescription.java
+++ b/src/java/com/jogamp/common/os/MachineDescription.java
@@ -291,6 +291,7 @@ public class MachineDescription {
* @return <code>true</code> if the two MachineDescription are equal;
* otherwise <code>false</code>.
*/
+ @Override
public final boolean equals(Object obj) {
if (this == obj) { return true; }
if ( !(obj instanceof MachineDescription) ) { return false; }
diff --git a/src/java/com/jogamp/common/os/NativeLibrary.java b/src/java/com/jogamp/common/os/NativeLibrary.java
index df59611..794d712 100644
--- a/src/java/com/jogamp/common/os/NativeLibrary.java
+++ b/src/java/com/jogamp/common/os/NativeLibrary.java
@@ -132,6 +132,7 @@ public final class NativeLibrary implements DynamicLookupHelper {
}
}
+ @Override
public final String toString() {
return "NativeLibrary[" + libraryPath + ", 0x" + Long.toHexString(libraryHandle) + ", global " + global + "]";
}
@@ -362,6 +363,7 @@ public final class NativeLibrary implements DynamicLookupHelper {
// Add entries from java.library.path
final String[] javaLibraryPaths =
AccessController.doPrivileged(new PrivilegedAction<String[]>() {
+ @Override
public String[] run() {
int count = 0;
final String usrPath = System.getProperty("java.library.path");
@@ -402,6 +404,7 @@ public final class NativeLibrary implements DynamicLookupHelper {
// Add current working directory
String userDir =
AccessController.doPrivileged(new PrivilegedAction<String>() {
+ @Override
public String run() {
return System.getProperty("user.dir");
}
@@ -523,6 +526,7 @@ public final class NativeLibrary implements DynamicLookupHelper {
}
if (!initializedFindLibraryMethod) {
AccessController.doPrivileged(new PrivilegedAction<Object>() {
+ @Override
public Object run() {
try {
findLibraryMethod = ClassLoader.class.getDeclaredMethod("findLibrary",
@@ -539,6 +543,7 @@ public final class NativeLibrary implements DynamicLookupHelper {
if (findLibraryMethod != null) {
try {
return AccessController.doPrivileged(new PrivilegedAction<String>() {
+ @Override
public String run() {
try {
return (String) findLibraryMethod.invoke(loader, new Object[] { libName });
diff --git a/src/java/com/jogamp/common/os/Platform.java b/src/java/com/jogamp/common/os/Platform.java
index 896ea56..23135ae 100644
--- a/src/java/com/jogamp/common/os/Platform.java
+++ b/src/java/com/jogamp/common/os/Platform.java
@@ -171,6 +171,7 @@ public class Platform extends PlatformPropsImpl {
final boolean[] _AWT_AVAILABLE = new boolean[] { false };
AccessController.doPrivileged(new PrivilegedAction<Object>() {
+ @Override
public Object run() {
PlatformPropsImpl.initSingleton(); // documenting the order of static initialization