On Wed, 20 Apr 2022 19:16:00 GMT, Andrey Turbanov <aturba...@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 This pull request has now been integrated. Changeset: e94b05c7 Author: Andrey Turbanov <aturba...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/e94b05c72046cfc52898917e835794bb1aec548a Stats: 18 lines in 1 file changed: 0 ins; 2 del; 16 mod 8285285: Avoid redundant allocations in WindowsPreferences Reviewed-by: jpai ------------- PR: https://git.openjdk.java.net/jdk/pull/8322