A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / util / PerThreadObject.java
index 0114c8c..3cc5e59 100644 (file)
@@ -13,29 +13,30 @@ package net.sourceforge.phpdt.internal.core.util;
 import java.util.Hashtable;
 
 /**
- * Implementation of data structure remembering an Object value by thread. Its purpose is to ease
- * writing multi-threaded algorithms by providing a per thread data structure.
+ * Implementation of data structure remembering an Object value by thread. Its
+ * purpose is to ease writing multi-threaded algorithms by providing a per
+ * thread data structure.
  */
 public class PerThreadObject {
 
        private Hashtable internalMap = new Hashtable(3); // synchronized map
-       
+
        /**
         * Answer the current map for this thread
         */
-       public Object getCurrent(){
+       public Object getCurrent() {
                return this.internalMap.get(Thread.currentThread());
        }
-       
+
        /**
-        * Set the map for this current thread - setting to null is equivalent to removing it
+        * Set the map for this current thread - setting to null is equivalent to
+        * removing it
         */
-       public void setCurrent(Object current){
-               if (current == null){
-                       this.internalMap.remove(Thread.currentThread());                        
+       public void setCurrent(Object current) {
+               if (current == null) {
+                       this.internalMap.remove(Thread.currentThread());
                } else {
                        this.internalMap.put(Thread.currentThread(), current);
                }
        }
 }
-