RFR: 8274168: Avoid String.compareTo == 0 to check String equality in java.management [v2]
Andrey Turbanov
github.com+741251+turbanoff at openjdk.java.net
Thu Sep 23 08:00:25 UTC 2021
> Cleanup places, where String.compareTo is used to check String's equality.
> Instead String.equals or switch expression could be used. They are faster and code is cleaner.
Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:
8274168: Avoid String.compareTo == 0 to check String equality in java.management
call compareTo only once
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/5640/files
- new: https://git.openjdk.java.net/jdk/pull/5640/files/ce8f707e..bf974634
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=5640&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=5640&range=00-01
Stats: 6 lines in 1 file changed: 1 ins; 0 del; 5 mod
Patch: https://git.openjdk.java.net/jdk/pull/5640.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/5640/head:pull/5640
PR: https://git.openjdk.java.net/jdk/pull/5640
More information about the serviceability-dev
mailing list