changeset 3568:1dc0c3021d13

Merge
author ohair
date Fri, 11 Feb 2011 01:45:55 -0800
parents 05a0271173a6 cfd397d86474
children 8711aedb08f2
files
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/script/ScriptEngineFactory.java	Thu Feb 10 20:48:02 2011 -0800
+++ b/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>