mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 07:50:55 +07:00
Fixes IDEA-291826 IntelliJ Suggest simplify Integer.compare method to `==` GitOrigin-RevId: 71882cec49e2846f0b30ae626da6d07381e516e2
10 lines
381 B
Java
10 lines
381 B
Java
// "Fix all 'Redundant 'compare()' method call' problems in file" "true"
|
|
class Boxing {
|
|
void test(Integer x, Integer y, int z) {
|
|
boolean same = Integer.<caret>compare(x, y) == 0;
|
|
boolean same1 = Integer.compare(x, y) > 0;
|
|
boolean same2 = Integer.compare(x, y) != 0;
|
|
boolean same3 = Integer.compare(x, z) == 0;
|
|
boolean same4 = Integer.compare(z, x) == 0;
|
|
}
|
|
} |