8273960: Redundant condition in Metadata.TypeComparator.compare

Reviewed-by: egahlin
This commit is contained in:
Andrey Turbanov 2021-09-25 11:42:03 +00:00 committed by Erik Gahlin
parent 5756385c2b
commit 9bc865d38c

@ -69,7 +69,7 @@ final class Metadata extends Command {
} else {
// Ensure that jdk.* are printed first
// This makes it easier to find user defined events at the end.
if (Type.SUPER_TYPE_EVENT.equals(t1.getSuperType()) && !package1.equals(package2)) {
if (Type.SUPER_TYPE_EVENT.equals(t1.getSuperType())) {
if (package1.equals("jdk.jfr")) {
return -1;
}