Inspectopedia Help

Redundant 'compare()' method call

Reports comparisons in which the compare method is superfluous.


boolean result =, b) == 0;

After the quick-fix is applied:

boolean result = a == b;

New in 2018.2

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Java, 233.SNAPSHOT

Last modified: 13 July 2023