changeset 3727:cfd397d86474

6604827: JavaDoc for ScriptEngineFactory.getMethodCallSyntax contains an error. Reviewed-by: mchung
author sundar
date Fri, 11 Feb 2011 10:38:10 +0530
parents 37563c09305d
children 1dc0c3021d13
files src/share/classes/javax/script/ScriptEngineFactory.java
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/script/ScriptEngineFactory.java	Wed Feb 09 16:30:37 2011 +0000
+++ b/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>