Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/useCompareMethod/beforeDoubleNoFloating.java
Tagir Valeev 2d08b71a4e [java-inspections] IDEA-285964 Replacement for 'Expression can be replaced with Double.compare()' sometimes breaks the code
Option is added to disable the inspection when semantics change is possible

GitOrigin-RevId: 97e5576582b65c3ba0cb3122d6274a37e271386d
2022-01-10 08:52:07 +00:00

8 lines
227 B
Java

// "Fix all ''compare()' method can be used to compare numbers' problems in file" "false"
public class Test {
public int test(double a, double b) {
<caret>if (a < b) return -1;
if (a > b) return 1;
return 0;
}
}