Use String.join() instead of manual loop in DescriptorSupport.toString

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 21
    • Affects Version/s: None
    • Component/s: core-svc
    • None

      There is opportunity to use String.join in DescriptorSupport.toString implementation.

              for (int i=0; i < fields.length; i++) {
                  if (i == (fields.length - 1)) {
                      respStr = respStr.concat(fields[i]);
                  } else {
                      respStr = respStr.concat(fields[i] + ", ");
                  }
              }

      Result code is shorter and clearer.

            Assignee:
            Andrey Turbanov
            Reporter:
            Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: