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

Remove redundant 'new String' calls after concatenation

XMLWordPrintable

      Result of string concatenation is a newly created String object. There is no need it wrap it in another 'new String' call.
      Such calls are confusing and produce warnings in IDE. Without them code is easier to read.

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

              Created:
              Updated:
              Resolved: