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

Remove redundant 'new String' calls after concatenation in java.desktop

    XMLWordPrintable

    Details

    • Resolved In Build:
      b14

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: