Redundant 'compare()' method call
Reports comparisons in which the compare
method is superfluous.
Example:
boolean result = Integer.compare(a, 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 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023