Author: doogie
Date: Wed Oct 17 12:49:38 2007
New Revision: 585646
URL:
http://svn.apache.org/viewvc?rev=585646&view=revLog:
In clearInitialContext(), there's no reason to call get, then remove;
just call remove directly. Closes
https://issues.apache.org/jira/browse/OFBIZ-1327Modified:
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);
}
}