6604827: JavaDoc for ScriptEngineFactory.getMethodCallSyntax contains an error.
Reviewed-by: mchung
--- 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>