RFR: 8285285: Avoid redundant allocations in WindowsPreferences
Jaikiran Pai
jpai at openjdk.java.net
Tue May 10 14:35:54 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
Marked as reviewed by jpai (Committer).
I don't have knowledge of this area, but these changes look good to me.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8322
More information about the core-libs-dev
mailing list