* Use ThreadLocal.set(null) instead of ThreadLocal.remove(),
which wasn't available pre Java 5.
This commit is contained in:
		
							parent
							
								
									20354228a2
								
							
						
					
					
						commit
						e6c287b35f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -215,7 +215,7 @@ public class RhinoEngine implements ScriptingEngine {
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public synchronized void exitContext() {
 | 
					    public synchronized void exitContext() {
 | 
				
			||||||
        // unregister the engine threadlocal
 | 
					        // unregister the engine threadlocal
 | 
				
			||||||
        engines.remove();
 | 
					        engines.set(null);
 | 
				
			||||||
        core.contextFactory.exit();
 | 
					        core.contextFactory.exit();
 | 
				
			||||||
        thread = null;
 | 
					        thread = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue