File tree Expand file tree Collapse file tree
src/main/java/org/scijava/script Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments