author | ohair |
Fri, 11 Feb 2011 01:45:55 -0800 | |
changeset 8385 | cbcff564fa0d |
parent 8384 | 3804a97b58c0 (current diff) |
parent 8383 | 8156ef75e9e7 (diff) |
child 8386 | 4a1a689a32e0 |
--- a/jdk/src/share/classes/javax/script/ScriptEngineFactory.java Thu Feb 10 20:48:02 2011 -0800 +++ b/jdk/src/share/classes/javax/script/ScriptEngineFactory.java Fri Feb 11 01:45:55 2011 -0800 @@ -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>