mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-08 01:34:55 +07:00
GitOrigin-RevId: 01b45074f9c8adc03bc788958ecba2fde134e55d
19 lines
506 B
Java
19 lines
506 B
Java
/*
|
|
Value is always false (b.equals("x"); line#15)
|
|
According to hard-coded contract, method 'equals' returns 'false' when b != "x" (equals; line#15)
|
|
Condition 'b != "x"' was deduced
|
|
It's known that 'b != a' from line #12 (a.equals(b); line#12)
|
|
and it's known that 'a == "x"' from line #14 (a.equals("x"); line#14)
|
|
*/
|
|
|
|
public class T {
|
|
|
|
void test(String a, String b) {
|
|
if(a.equals(b)) {
|
|
|
|
} else if (a.equals("x")) {
|
|
if (<selection>b.equals("x")</selection>) {}
|
|
}
|
|
}
|
|
}
|