mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-30 01:20:53 +07:00
43 lines
829 B
Java
43 lines
829 B
Java
|
|
class Bar {
|
|
public static final String T = "";
|
|
|
|
void m0() {
|
|
while (T == "") {
|
|
f();
|
|
}
|
|
<error descr="Unreachable statement">f();</error>
|
|
}
|
|
|
|
void m() {
|
|
while (<error descr="Loop condition is always false making the loop body unreachable">T == "a"</error>) {
|
|
f();
|
|
}
|
|
}
|
|
|
|
void m01() {
|
|
while (<error descr="Loop condition is always false making the loop body unreachable">T != ""</error>) {
|
|
f();
|
|
}
|
|
}
|
|
|
|
void m1() {
|
|
while (T != "a") {
|
|
f();
|
|
}
|
|
<error descr="Unreachable statement">f();</error>
|
|
}
|
|
|
|
void m2() {
|
|
while (<error descr="Loop condition is always false making the loop body unreachable">T != T</error>) {
|
|
f();
|
|
}
|
|
}
|
|
|
|
void m3() {
|
|
while (T == T) {}
|
|
<error descr="Unreachable statement">f();</error>
|
|
}
|
|
|
|
private void f() {}
|
|
} |