mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 11:44:39 +07:00
17 lines
347 B
Java
17 lines
347 B
Java
import java.util.List;
|
|
|
|
class Test {
|
|
void test(boolean x, boolean y) {
|
|
if(!x && y) {
|
|
|
|
} else if(!x && <warning descr="Condition '!y' is always 'true' when reached">!y</warning>) {
|
|
|
|
}
|
|
}
|
|
|
|
void test(String type) {
|
|
if(type != null && (type.equals("foo") | type.equals("bar"))) {
|
|
System.out.println("Who knows");
|
|
}
|
|
}
|
|
} |