Skip to content

Commit b91b703

Browse files
ctruedendscho
authored andcommitted
DefaultScriptInterpreter: add more final keywords
1 parent 6b186e3 commit b91b703

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,16 @@ public synchronized void writeHistory() {
7474
}
7575

7676
@Override
77-
public synchronized String walkHistory(final String currentCommand, boolean forward) {
77+
public synchronized String walkHistory(final String currentCommand,
78+
final boolean forward)
79+
{
7880
if (history == null) return currentCommand;
7981
history.replace(currentCommand);
8082
return forward ? history.next() : history.previous();
8183
}
8284

8385
@Override
84-
public void eval(String command) throws ScriptException {
86+
public void eval(final String command) throws ScriptException {
8587
if (history != null) history.add(command);
8688
if (engine == null) throw new java.lang.IllegalArgumentException();
8789
engine.eval(command);

0 commit comments

Comments
 (0)