Skip to content

Commit 8888bdc

Browse files
committed
DefaultScriptInterpreter: add more final keywords
1 parent 0bbd9dc commit 8888bdc

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class DefaultScriptInterpreter implements ScriptInterpreter {
5050
* @param scriptService the script service
5151
* @param language the script language
5252
*/
53-
public DefaultScriptInterpreter(ScriptService scriptService,
53+
public DefaultScriptInterpreter(final ScriptService scriptService,
5454
final ScriptLanguage language)
5555
{
5656
this.language = language;
@@ -72,14 +72,16 @@ public synchronized void writeHistory() {
7272
}
7373

7474
@Override
75-
public synchronized String walkHistory(final String currentCommand, boolean forward) {
75+
public synchronized String walkHistory(final String currentCommand,
76+
final boolean forward)
77+
{
7678
if (history == null) return currentCommand;
7779
history.replace(currentCommand);
7880
return forward ? history.next() : history.previous();
7981
}
8082

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

0 commit comments

Comments
 (0)