Re: RFR: 8283711: Remove redundant 'new String' calls after concatenation

2022-03-26 Thread Xue-Lei Andrew Fan
On Sun, 20 Mar 2022 12:07:52 GMT, Andrey Turbanov 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 cleanu

Re: RFR: 8283711: Remove redundant 'new String' calls after concatenation

2022-03-25 Thread Vicente Romero
On Sun, 20 Mar 2022 12:07:52 GMT, Andrey Turbanov 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 cleanu

Re: RFR: 8283711: Remove redundant 'new String' calls after concatenation

2022-03-25 Thread Bradford Wetmore
On Sun, 20 Mar 2022 12:07:52 GMT, Andrey Turbanov 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 cleanu