aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/tools/Callback.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/tools/Callback.java')
-rw-r--r--src/main/javassist/tools/Callback.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/javassist/tools/Callback.java b/src/main/javassist/tools/Callback.java
index c3095ccb..c0c88094 100644
--- a/src/main/javassist/tools/Callback.java
+++ b/src/main/javassist/tools/Callback.java
@@ -16,12 +16,13 @@
package javassist.tools;
-import javassist.CannotCompileException;
-import javassist.CtBehavior;
-
import java.util.HashMap;
+import java.util.Map;
import java.util.UUID;
+import javassist.CannotCompileException;
+import javassist.CtBehavior;
+
/**
* Creates bytecode that when executed calls back to the instance's result method.
*
@@ -49,7 +50,7 @@ import java.util.UUID;
*/
public abstract class Callback {
- public static HashMap callbacks = new HashMap();
+ public static Map<String,Callback> callbacks = new HashMap<String,Callback>();
private final String sourceCode;
@@ -73,6 +74,7 @@ public abstract class Callback {
*/
public abstract void result(Object[] objects);
+ @Override
public String toString(){
return sourceCode();
}