UIDefaults.printargs() has small error

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: 1.3.0
    • Component/s: 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: