aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp/java/sun/applet/PluginObjectStore.java
diff options
context:
space:
mode:
authorDeepak Bhole <dbhole@redhat.com>2010-12-06 15:34:01 -0500
committerDeepak Bhole <dbhole@redhat.com>2010-12-06 15:34:01 -0500
commit6ca1a9a369b10703da9af8f8a1ced0f3b02ae5c2 (patch)
tree568f8e454db94fa8abc896b46ce8cac7a9f3b74d /plugin/icedteanp/java/sun/applet/PluginObjectStore.java
parent0d66adf24179c33bbdccaacc10d4c8a5f5e2cd54 (diff)
Fixed indentation and spacing for all .java files.
Added a new .settings directory which contains Eclipse preferences for code style.
Diffstat (limited to 'plugin/icedteanp/java/sun/applet/PluginObjectStore.java')
-rw-r--r--plugin/icedteanp/java/sun/applet/PluginObjectStore.java24
1 files changed, 11 insertions, 13 deletions
diff --git a/plugin/icedteanp/java/sun/applet/PluginObjectStore.java b/plugin/icedteanp/java/sun/applet/PluginObjectStore.java
index 9960211..a0c6f6e 100644
--- a/plugin/icedteanp/java/sun/applet/PluginObjectStore.java
+++ b/plugin/icedteanp/java/sun/applet/PluginObjectStore.java
@@ -41,11 +41,10 @@ import java.util.*;
import java.lang.reflect.*;
import java.io.*;
-public class PluginObjectStore
-{
- 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>();
+public class PluginObjectStore {
+ 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 =
@@ -73,13 +72,13 @@ public class PluginObjectStore
public boolean contains(Object object) {
if (object == null)
- return identifiers.containsKey(object);
+ return identifiers.containsKey(object);
return false;
}
public boolean contains(int identifier) {
- return objects.containsKey(identifier);
+ return objects.containsKey(identifier);
}
public void reference(Object object) {
@@ -122,11 +121,10 @@ 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));
+ }
}
}
-