mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-14 09:10:03 +07:00
14 lines
349 B
Java
14 lines
349 B
Java
// "Fix all 'Unnecessary boxing to compare primitives' problems in file" "true"
|
|
public class Test {
|
|
public void test(int a, int b) {
|
|
if(Integer.compare(a, b) > 0) {
|
|
System.out.println(1);
|
|
}
|
|
if(Long.compare(a, b) > 0) {
|
|
System.out.println(1);
|
|
}
|
|
if(Double.compare(a, b) > 0) {
|
|
System.out.println(1);
|
|
}
|
|
}
|
|
} |