diff options
author | Harvey Harrison <[email protected]> | 2013-10-17 21:34:47 -0700 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2013-10-17 21:34:47 -0700 |
commit | 7607867f0bba56792cad320695d6209b49acce9d (patch) | |
tree | 36f348562c272f5b994c12519c27d5b06b233566 /src/java/com/jogamp/common/util | |
parent | 791a2749886f02ec7b8db25bf8862e8269b96da5 (diff) |
gluegen: add all missing @Override annotations
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/java/com/jogamp/common/util')
7 files changed, 12 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/util/FloatStack.java b/src/java/com/jogamp/common/util/FloatStack.java index 725491c..8cb2e5b 100644 --- a/src/java/com/jogamp/common/util/FloatStack.java +++ b/src/java/com/jogamp/common/util/FloatStack.java @@ -79,6 +79,7 @@ public class /*name*/FloatStack/*name*/ implements PrimitiveStack { @Override public final void setGrowSize(int newGrowSize) { growSize = newGrowSize; } + @Override public final String toString() { return "FloatStack[0..(pos "+position+").."+buffer.length+", remaining "+remaining()+"]"; } diff --git a/src/java/com/jogamp/common/util/IntIntHashMap.java b/src/java/com/jogamp/common/util/IntIntHashMap.java index 06b9a3f..ef6159b 100644 --- a/src/java/com/jogamp/common/util/IntIntHashMap.java +++ b/src/java/com/jogamp/common/util/IntIntHashMap.java @@ -85,6 +85,7 @@ public class /*name*/IntIntHashMap/*name*/ implements Cloneable, if(!isPrimitive) { final EntryCM cm = AccessController.doPrivileged(new PrivilegedAction<EntryCM>() { + @Override @SuppressWarnings("unchecked") public EntryCM run() { EntryCM r = new EntryCM(); @@ -501,6 +502,7 @@ public class /*name*/IntIntHashMap/*name*/ implements Cloneable, private static Method getCloneMethod(Object obj) { final Class<?> clazz = obj.getClass(); return AccessController.doPrivileged(new PrivilegedAction<Method>() { + @Override public Method run() { try { return clazz.getDeclaredMethod("clone"); diff --git a/src/java/com/jogamp/common/util/LFRingbuffer.java b/src/java/com/jogamp/common/util/LFRingbuffer.java index 1ca1e20..a0418c5 100644 --- a/src/java/com/jogamp/common/util/LFRingbuffer.java +++ b/src/java/com/jogamp/common/util/LFRingbuffer.java @@ -81,10 +81,12 @@ public class LFRingbuffer<T> implements Ringbuffer<T> { private volatile int writePos; private volatile int size; + @Override public final String toString() { return "LFRingbuffer<?>[filled "+size+" / "+(capacityPlusOne-1)+", writePos "+writePos+", readPos "+readPos+"]"; } + @Override public final void dump(PrintStream stream, String prefix) { stream.println(prefix+" "+toString()+" {"); for(int i=0; i<capacityPlusOne; i++) { diff --git a/src/java/com/jogamp/common/util/PropertyAccess.java b/src/java/com/jogamp/common/util/PropertyAccess.java index 5a8f082..830bfe4 100644 --- a/src/java/com/jogamp/common/util/PropertyAccess.java +++ b/src/java/com/jogamp/common/util/PropertyAccess.java @@ -176,6 +176,7 @@ public class PropertyAccess { private static final String getTrustedPropKey(final String propertyKey) { return AccessController.doPrivileged(new PrivilegedAction<String>() { + @Override public String run() { try { return System.getProperty(propertyKey); diff --git a/src/java/com/jogamp/common/util/Ringbuffer.java b/src/java/com/jogamp/common/util/Ringbuffer.java index 7faf5dd..6c2507f 100644 --- a/src/java/com/jogamp/common/util/Ringbuffer.java +++ b/src/java/com/jogamp/common/util/Ringbuffer.java @@ -45,6 +45,7 @@ import java.io.PrintStream; public interface Ringbuffer<T> { /** Returns a short string representation incl. size/capacity and internal r/w index (impl. dependent). */ + @Override public String toString(); /** Debug functionality - Dumps the contents of the internal array. */ diff --git a/src/java/com/jogamp/common/util/SecurityUtil.java b/src/java/com/jogamp/common/util/SecurityUtil.java index 742de84..4586d22 100644 --- a/src/java/com/jogamp/common/util/SecurityUtil.java +++ b/src/java/com/jogamp/common/util/SecurityUtil.java @@ -48,6 +48,7 @@ public class SecurityUtil { final boolean hasAllPermissions; { final ProtectionDomain insecPD = AccessController.doPrivileged(new PrivilegedAction<ProtectionDomain>() { + @Override public ProtectionDomain run() { return SecurityUtil.class.getProtectionDomain(); } } ); @@ -64,6 +65,7 @@ public class SecurityUtil { System.err.println("SecurityUtil: Has SecurityManager: "+ ( null != securityManager ) ) ; System.err.println("SecurityUtil: Has AllPermissions: "+hasAllPermissions); final Certificate[] certs = AccessController.doPrivileged(new PrivilegedAction<Certificate[]>() { + @Override public Certificate[] run() { return getCerts(SecurityUtil.class); } } ); diff --git a/src/java/com/jogamp/common/util/cache/TempFileCache.java b/src/java/com/jogamp/common/util/cache/TempFileCache.java index 5898d50..cc7014a 100644 --- a/src/java/com/jogamp/common/util/cache/TempFileCache.java +++ b/src/java/com/jogamp/common/util/cache/TempFileCache.java @@ -237,6 +237,7 @@ public class TempFileCache { // We do this so that the locks never get garbage-collected. Runtime.getRuntime().addShutdownHook(new Thread() { /* @Override */ + @Override public void run() { // NOTE: we don't really expect that this code will ever // be called. If it does, we will close the output @@ -263,6 +264,7 @@ public class TempFileCache { // Start a new Reaper thread to do stuff... Thread reaperThread = new Thread() { /* @Override */ + @Override public void run() { deleteOldTempDirs(); } @@ -286,6 +288,7 @@ public class TempFileCache { final String ourLockFile = tmpRootPropValue + ".lck"; FilenameFilter lckFilter = new FilenameFilter() { /* @Override */ + @Override public boolean accept(File dir, String name) { return name.endsWith(".lck") && !name.equals(ourLockFile); } |