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

Remove redundant 'new String' calls after concatenation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 19
    • Component/s: security-libs
    • Labels:

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

                Dates

                Created:
                Updated:
                Resolved: