mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-08 21:52:48 +07:00
GitOrigin-RevId: 2f476f1ab1ed75530cb21597d199e86c49703b10
19 lines
408 B
Java
19 lines
408 B
Java
/*
|
|
Value is always false (i == expected; line#15)
|
|
Condition 'i != expected' was checked before (i == expected; line#9)
|
|
*/
|
|
class A
|
|
void compareInts(int i) {
|
|
int expected = new Random().nextInt(100);
|
|
int result;
|
|
if (i == expected) {
|
|
result = 0;
|
|
}
|
|
else if (i < expected) {
|
|
result = -1;
|
|
}
|
|
else if (<selection>i == expected</selection>) {
|
|
result = 0;
|
|
}
|
|
}
|
|
} |