Author: doogie
Date: Wed Oct 17 12:49:38 2007
New Revision: 585646

URL: http://svn.apache.org/viewvc?rev=585646&view=rev
Log:
In clearInitialContext(), there's no reason to call get, then remove;
just call remove directly.  Closes
https://issues.apache.org/jira/browse/OFBIZ-1327

Modified:
    
ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/JNDIContextFactory.java

Modified: 
ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/JNDIContextFactory.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/JNDIContextFactory.java?rev=585646&r1=585645&r2=585646&view=diff
==============================================================================
--- 
ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/JNDIContextFactory.java 
(original)
+++ 
ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/JNDIContextFactory.java 
Wed Oct 17 12:49:38 2007
@@ -93,9 +93,7 @@
      * @param jndiServerName
      */
     public static void clearInitialContext(String jndiServerName) {
-        InitialContext ic = (InitialContext) contexts.get(jndiServerName);
-        if (ic != null) 
-            contexts.remove(jndiServerName);
+        contexts.remove(jndiServerName);
     }
 
 }


Reply via email to