mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-86160 Constant conditions & exceptions: no highlighting when one is expected
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class Foo {
|
||||
public void foo() {
|
||||
final boolean flag = true;
|
||||
|
||||
bar(<warning descr="Condition 'flag' is always 'true'">flag</warning> ? "a" : "b",
|
||||
<warning descr="Condition 'flag' is always 'true'">flag</warning> ? new String[]{"aa"} : new String[]{"bb"}
|
||||
);
|
||||
}
|
||||
|
||||
void bar(String b, String[] a) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user