RFR: 8273375: Remove redundant 'new String' calls after concatenation in java.desktop [v2]
Alexey Ivanov
aivanov at openjdk.java.net
Wed Sep 8 12:41:09 UTC 2021
On Wed, 8 Sep 2021 09:49:25 GMT, Andrey Turbanov <github.com+741251+turbanoff at openjdk.org> wrote:
>> 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.
>
> Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:
>
> 8273375: Remove redundant 'new String' calls after concatenation in java.desktop
> post-review
Marked as reviewed by aivanov (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/5356
More information about the client-libs-dev
mailing list