RFR: 8285285: Avoid redundant allocations in WindowsPreferences
Andrey Turbanov
aturbanov at openjdk.java.net
Mon Jun 6 21:03:50 UTC 2022
On Wed, 20 Apr 2022 19:16:00 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
> 1. No need to call `String.substring` if you need need to compare start of string with some constant. `String.startWith` suites better.
> 2. Unused String array is allocated in `childrenNamesSpi` method
Thank you for review!
-------------
PR: https://git.openjdk.java.net/jdk/pull/8322
More information about the core-libs-dev
mailing list