Files
openide/java/java-tests/testData/inspection/dataFlow/tracker/RepeatingIntegerComparisonThreeBranches.java
Rustam Vishnyakovandintellij-monorepo-bot 123242c4b2 EditorConfig documentation test
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
2019-06-16 04:03:21 +03:00

17 lines
324 B
Java

/*
Value is always true (x < y; line#13)
Condition 'x < y' was checked before (x == y; line#9)
*/
class Test {
void test(int x, int y) {
if (x > y) return; // would be better to point also here, but acceptable
if (x == y) {
return;
}
if (<selection>x < y</selection>) {
return;
}
}
}