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

Logger.enterring uses String concatenation in a loop

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 9
    • 8
    • core-libs
    • None

        A StringBuilder could be used to optimize the following loop:

         for (int i = 0; i < params.length; i++) {
                    msg = msg + " {" + i + "}";
         }

              dfuchs Daniel Fuchs
              dfuchs Daniel Fuchs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: