On Sun, 20 Mar 2022 12:07:52 GMT, Andrey Turbanov <aturba...@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

This pull request has now been integrated.

Changeset: d472c019
Author:    Andrey Turbanov <aturba...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk/commit/d472c019344524aa20c74bdc4ab7823b6940be67
Stats:     13 lines in 3 files changed: 0 ins; 1 del; 12 mod

8283711: Remove redundant 'new String' calls after concatenation

Reviewed-by: wetmore, vromero, xuelei

-------------

PR: https://git.openjdk.java.net/jdk/pull/7876

Reply via email to