Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4389277

UIDefaults.printargs() has small error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.3.0
    • client-libs



      Name: yyT116575 Date: 11/14/2000


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)


      in javax.swing.UIDefaults::printArgs(Object[] array):

      private String printArgs(Object[] array) {
              String s = "{";
              if (array !=null) {
              for (int i = 0 ; i < array.length-1; i++) {
                  s = s.concat(array[i] + ",");
              }
              s = s.concat(array[array.length-1] + "}");
              } else {
              s.concat("}");
              >>>>>>> is wrong; it should be: s = s.concat("}");
              }
              return s;
          }
          }
      (Review ID: 112019)
      ======================================================================

            svioletsunw Scott Violet (Inactive)
            yyoungsunw Yung-ching Young (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: