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

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

XMLWordPrintable

    • b14

        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:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: