diff options
Diffstat (limited to 'plugin/icedteanp/java/sun/applet/PluginObjectStore.java')
-rw-r--r-- | plugin/icedteanp/java/sun/applet/PluginObjectStore.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/plugin/icedteanp/java/sun/applet/PluginObjectStore.java b/plugin/icedteanp/java/sun/applet/PluginObjectStore.java index b744744..9960211 100644 --- a/plugin/icedteanp/java/sun/applet/PluginObjectStore.java +++ b/plugin/icedteanp/java/sun/applet/PluginObjectStore.java @@ -43,9 +43,9 @@ import java.io.*; public class PluginObjectStore { - private static HashMap<Integer, Object> objects = new HashMap(); - private static HashMap<Integer, Integer> counts = new HashMap(); - private static HashMap<Object, Integer> identifiers = new HashMap(); + private static HashMap<Integer, Object> objects = new HashMap<Integer,Object>(); + private static HashMap<Integer, Integer> counts = new HashMap<Integer,Integer>(); + private static HashMap<Object, Integer> identifiers = new HashMap<Object,Integer>(); // FIXME: // // IF uniqueID == MAX_LONG, uniqueID = @@ -70,16 +70,16 @@ public class PluginObjectStore return 0; return identifiers.get(object); } - + public boolean contains(Object object) { - if (object == null) - return identifiers.containsKey(object); + if (object == null) + return identifiers.containsKey(object); - return false; + return false; } - + public boolean contains(int identifier) { - return objects.containsKey(identifier); + return objects.containsKey(identifier); } public void reference(Object object) { @@ -122,11 +122,11 @@ public class PluginObjectStore } public void dump() { - Iterator i = objects.keySet().iterator(); - while (i.hasNext()) { - Object key = i.next(); - PluginDebug.debug(key + "::" + objects.get(key)); - } + Iterator i = objects.keySet().iterator(); + while (i.hasNext()) { + Object key = i.next(); + PluginDebug.debug(key + "::" + objects.get(key)); + } } } |