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

Andrey Turbanov github.com+741251+turbanoff at openjdk.java.net
Sat Sep 25 11:44:54 UTC 2021


On Sat, 21 Aug 2021 08:24:07 GMT, Andrey Turbanov <github.com+741251+turbanoff at openjdk.org> wrote:

> This condition is always `true`, as there is already check above:
> 
>                 if (package1.equals(package2)) {
>                     return n1.compareTo(n2);
>                 } else {

This pull request has now been integrated.

Changeset: 9bc865d3
Author:    Andrey Turbanov <turbanoff at gmail.com>
Committer: Erik Gahlin <egahlin at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/9bc865d38c7e33036dd77392960d7d289d6eefa4
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

8273960: Redundant condition in Metadata.TypeComparator.compare

Reviewed-by: egahlin

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

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


More information about the hotspot-jfr-dev mailing list