Integrated: 8285285: Avoid redundant allocations in WindowsPreferences
Andrey Turbanov
aturbanov at openjdk.java.net
Mon Jun 6 21:19:32 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
This pull request has now been integrated.
Changeset: e94b05c7
Author: Andrey Turbanov <aturbanov at 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
More information about the core-libs-dev
mailing list