mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 13:50:53 +07:00
15 lines
402 B
Java
15 lines
402 B
Java
public class AlwaysFalseForLoop {
|
|
void test() {
|
|
int i = 0;
|
|
for(i++; <error descr="Loop condition is always false making the loop body unreachable">fa<caret>lse</error>; System.out.println("oops")) {
|
|
System.out.println("oops");
|
|
}
|
|
|
|
}
|
|
|
|
void test2() {
|
|
for(int j=0; <error descr="Loop condition is always false making the loop body unreachable">false</error>; j++) {
|
|
|
|
}
|
|
}
|
|
} |