Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/useCompareMethod/beforeBox.java

14 lines
411 B
Java

// "Fix all ''compare()' method can be used to compare numbers' problems in file" "true"
public class Test {
public void test(int a, int b) {
if(((Integer)a).compa<caret>reTo(b) > 0) {
System.out.println(1);
}
if(Long.valueOf(a).compareTo(Long.valueOf(b)) > 0) {
System.out.println(1);
}
if(new Double(a).compareTo(new Double(b)) > 0) {
System.out.println(1);
}
}
}