[PATCH] javax,script.ScriptEngineFactory Typos
Ahmed Ashour
asashour at yahoo.com
Tue Jul 7 09:05:49 UTC 2015
Hi all,
Please find below a proposed patch for the typos in javax.script.ScriptEngineFactory
Thanks,Ahmed
diff --git a/src/java.scripting/share/classes/javax/script/ScriptEngineFactory.java b/src/java.scripting/share/classes/javax/script/ScriptEngineFactory.java--- a/src/java.scripting/share/classes/javax/script/ScriptEngineFactory.java+++ b/src/java.scripting/share/classes/javax/script/ScriptEngineFactory.java@@ -160,7 +160,6 @@ * } * ret += ")"; * return ret;- * } * } </pre> * * @param obj The name representing the object whose method is to be invoked. The@@ -190,8 +189,6 @@ * * @param toDisplay The String to be displayed by the returned statement. * @return The string used to display the String in the syntax of the scripting language.- *- * */ public String getOutputStatement(String toDisplay); @@ -208,14 +205,12 @@ * retval += statements[i] + ";\n"; * } * return retval += "?>";- * } * }</pre> * * @param statements The statements to be executed. May be return values of * calls to the <code>getMethodCallSyntax</code> and <code>getOutputStatement</code> methods. * @return The Program */- public String getProgram(String... statements); /**@@ -225,5 +220,5 @@ * * @return A new <code>ScriptEngine</code> instance. */- public ScriptEngine getScriptEngine();+ public ScriptEngine getScriptEngine(); }
More information about the nashorn-dev
mailing list