RFR: 8283711: Remove redundant 'new String' calls after concatenation
Vicente Romero
vromero at openjdk.java.net
Fri Mar 25 20:49:53 UTC 2022
On Sun, 20 Mar 2022 12:07:52 GMT, Andrey Turbanov <aturbanov 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.
> Similar cleanup [JDK-8273375](https://bugs.openjdk.java.net/browse/JDK-8273375) in java.desktop
the compiler changes looks good
-------------
Marked as reviewed by vromero (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/7876
More information about the security-dev
mailing list