From 968fdbbdd4ac094040b5ac37abdeb04732e6ad83 Mon Sep 17 00:00:00 2001 From: noga Date: Sun, 23 Jul 2023 19:08:24 +0530 Subject: [PATCH] Fixing spotless issues. --- src/org/mozilla/javascript/engine/Builtins.java | 2 +- .../mozilla/javascript/tests/scriptengine/BuiltinsTest.java | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/org/mozilla/javascript/engine/Builtins.java b/src/org/mozilla/javascript/engine/Builtins.java index 707fac20e1..b3726dd4ec 100644 --- a/src/org/mozilla/javascript/engine/Builtins.java +++ b/src/org/mozilla/javascript/engine/Builtins.java @@ -48,7 +48,7 @@ public static void print(Context cx, Scriptable thisObj, Object[] args, Function self.stdout.write(ScriptRuntime.toString(arg)); } self.stdout.write('\n'); - //ref bug https://github.com/mozilla/rhino/issues/1356 + // ref bug https://github.com/mozilla/rhino/issues/1356 self.stdout.flush(); } diff --git a/testsrc/org/mozilla/javascript/tests/scriptengine/BuiltinsTest.java b/testsrc/org/mozilla/javascript/tests/scriptengine/BuiltinsTest.java index ee5fc4b6f9..e7b6772614 100644 --- a/testsrc/org/mozilla/javascript/tests/scriptengine/BuiltinsTest.java +++ b/testsrc/org/mozilla/javascript/tests/scriptengine/BuiltinsTest.java @@ -10,7 +10,6 @@ import javax.script.ScriptEngineManager; import javax.script.ScriptException; import javax.script.SimpleScriptContext; - import org.junit.*; import org.mozilla.javascript.engine.RhinoScriptEngineFactory; @@ -35,13 +34,13 @@ public void setup() { public void printStdout() throws Exception { ByteArrayOutputStream bos = new ByteArrayOutputStream(); PrintStream original = System.out; - PrintStream modified = new PrintStream(bos,false); + PrintStream modified = new PrintStream(bos, false); System.setOut(modified); // Now Get A SimpleContext ScriptContext sc = new SimpleScriptContext(); try { // this was a broken test - engine.eval("print('Hello, World!');", sc ); + engine.eval("print('Hello, World!');", sc); // this has been hard work https://github.com/mozilla/rhino/issues/1356 Assert.assertEquals("Hello, World!\n", bos.toString()); } finally {