summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/util/RunnableTask.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-02-26 17:59:27 +0100
committerMichael Bien <[email protected]>2011-02-26 17:59:27 +0100
commitbe26200a6d2fbeff6df49aada0bcf7cad91fe64f (patch)
treed058fe9abcb2388cd480a16d95adb167f52284e1 /src/java/com/jogamp/common/util/RunnableTask.java
parenta1c22f48aef28165b0112e3bab223fe5ea2fa4fd (diff)
small cleanup in uitl package
- StringBuffer -> StringBuilder - ReflectionUtil.getBaseName -> class.getSimpleName() - cleanup imports, generics and @Override for all touched classes
Diffstat (limited to 'src/java/com/jogamp/common/util/RunnableTask.java')
-rw-r--r--src/java/com/jogamp/common/util/RunnableTask.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/java/com/jogamp/common/util/RunnableTask.java b/src/java/com/jogamp/common/util/RunnableTask.java
index d5622b2..3707ce8 100644
--- a/src/java/com/jogamp/common/util/RunnableTask.java
+++ b/src/java/com/jogamp/common/util/RunnableTask.java
@@ -34,7 +34,7 @@ package com.jogamp.common.util;
*/
public class RunnableTask implements Runnable {
Runnable runnable;
- Object notifyObject;
+ final Object notifyObject;
boolean catchExceptions;
Object attachment;
@@ -121,6 +121,7 @@ public class RunnableTask implements Runnable {
public long getDurationInExec() { return ts2 - ts1; }
public long getDurationTotal() { return ts2 - ts0; }
+ @Override
public String toString() {
return "RunnableTask[executed "+isExecuted()+", t2-t0 "+getDurationTotal()+", t2-t1 "+getDurationInExec()+", t1-t0 "+getDurationInQueue()+", throwable "+getThrowable()+", Runnable "+runnable+", Attachment "+attachment+"]";
}