RFR: 8273960: Redundant condition in Metadata.TypeComparator.compare

Andrey Turbanov github.com+741251+turbanoff at openjdk.java.net
Sat Sep 18 09:09:56 UTC 2021


This condition is always `true`, as there is already check above:

                if (package1.equals(package2)) {
                    return n1.compareTo(n2);
                } else {

-------------

Commit messages:
 - [PATCH] Cleanup always true condition in Metadata.TypeComparator.compare

Changes: https://git.openjdk.java.net/jdk/pull/5207/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5207&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8273960
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5207.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5207/head:pull/5207

PR: https://git.openjdk.java.net/jdk/pull/5207


More information about the hotspot-jfr-dev mailing list