File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/java/org/scijava/plugins/scripting/jython Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -95,8 +95,8 @@ public void run() {
9595
9696 synchronized (JythonReferenceCleaner .this ) {
9797 // poll the queue
98- JythonEnginePhantomReference ref =
99- (JythonEnginePhantomReference ) queue .poll ();
98+ final JythonEnginePhantomReference ref =
99+ (JythonEnginePhantomReference ) queue .poll ();
100100
101101 // if we have a ref, clean it up
102102 if (ref != null ) {
@@ -132,16 +132,16 @@ private static class JythonEnginePhantomReference extends
132132
133133 public PythonInterpreter interpreter ;
134134
135- public JythonEnginePhantomReference (JythonScriptEngine engine ,
136- ReferenceQueue <JythonScriptEngine > queue )
135+ public JythonEnginePhantomReference (final JythonScriptEngine engine ,
136+ final ReferenceQueue <JythonScriptEngine > queue )
137137 {
138138 super (engine , queue );
139139 interpreter = engine .interpreter ;
140140 }
141141
142142 public void cleanup () {
143143 final List <String > scriptLocals = new ArrayList <String >();
144- PythonInterpreter interp = interpreter ;
144+ final PythonInterpreter interp = interpreter ;
145145 if (interp == null ) return ;
146146
147147 // NB: This method for cleaning up local variables was taken from:
You can’t perform that action at this time.
0 commit comments