Skip to content

Commit 52acdad

Browse files
ctruedendscho
authored andcommitted
DefaultScriptInterpreter: add final keywords
1 parent e7b80c6 commit 52acdad

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main/java/org/scijava/script/DefaultScriptInterpreter.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
*/
4343
public class DefaultScriptInterpreter implements ScriptInterpreter {
4444

45-
private ScriptEngine engine;
46-
private History history;
45+
private final ScriptEngine engine;
46+
private final History history;
4747
private String currentCommand = "";
4848

4949
/**
@@ -52,7 +52,9 @@ public class DefaultScriptInterpreter implements ScriptInterpreter {
5252
* @param scriptService the script service
5353
* @param engine the script engine
5454
*/
55-
public DefaultScriptInterpreter(final PrefService prefs, final ScriptService scriptService, final ScriptEngine engine) {
55+
public DefaultScriptInterpreter(final PrefService prefs,
56+
final ScriptService scriptService, final ScriptEngine engine)
57+
{
5658
this.engine = engine;
5759
history = new History(prefs, engine.getClass().getName());
5860
readHistory();

0 commit comments

Comments
 (0)