6604827: JavaDoc for ScriptEngineFactory.getMethodCallSyntax contains an error.
authorsundar
Fri, 11 Feb 2011 10:38:10 +0530
changeset 8383 8156ef75e9e7
parent 8194 09cff98c5bb8
child 8385 cbcff564fa0d
6604827: JavaDoc for ScriptEngineFactory.getMethodCallSyntax contains an error. Reviewed-by: mchung
jdk/src/share/classes/javax/script/ScriptEngineFactory.java
--- a/jdk/src/share/classes/javax/script/ScriptEngineFactory.java	Wed Feb 09 16:30:37 2011 +0000
+++ b/jdk/src/share/classes/javax/script/ScriptEngineFactory.java	Fri Feb 11 10:38:10 2011 +0530
@@ -152,12 +152,11 @@
      *      ret += "." + m + "(";
      *      for (int i = 0; i < args.length; i++) {
      *          ret += args[i];
-     *          if (i == args.length - 1) {
-     *              ret += ")";
-     *          } else {
+     *          if (i < args.length - 1) {
      *              ret += ",";
      *          }
      *      }
+     *      ret += ")";
      *      return ret;
      * }
      *</pre></code>