[jdk17u] RFR: 8273375: Remove redundant 'new String' calls after concatenation in java.desktop

Olga Mikhaltsova omikhaltcova at openjdk.java.net
Mon Sep 27 05:25:27 UTC 2021


I'd like to backport JDK-8273375 to jdk17u.
The original patch applied cleanly.
The fix removes unnesessary 'new String' calls because the result of strings' concatenation is already a newly created String object.

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

Commit messages:
 - Backport 59c9f750414e4f131c906a5bc20f32f2f9cfe9ec

Changes: https://git.openjdk.java.net/jdk17u/pull/88/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk17u&pr=88&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8273375
  Stats: 96 lines in 15 files changed: 13 ins; 3 del; 80 mod
  Patch: https://git.openjdk.java.net/jdk17u/pull/88.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk17u pull/88/head:pull/88

PR: https://git.openjdk.java.net/jdk17u/pull/88


More information about the jdk-updates-dev mailing list