* Use ThreadLocal.set(null) instead of ThreadLocal.remove(),

which wasn't available pre Java 5.
This commit is contained in:
hns 2006-12-20 23:00:28 +00:00
parent 20354228a2
commit e6c287b35f

View file

@ -215,7 +215,7 @@ public class RhinoEngine implements ScriptingEngine {
*/
public synchronized void exitContext() {
// unregister the engine threadlocal
engines.remove();
engines.set(null);
core.contextFactory.exit();
thread = null;