mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-17 16:19:58 +07:00
DFA: branch-specific reporting (IDEA-203016)
This commit is contained in:
+7
-3
@@ -1,10 +1,14 @@
|
||||
// "Surround with 'if ((b ? null : "foo") != null)'" "true"
|
||||
// "Surround with 'if ((b ? foo(1) : foo(2)) != null)'" "true"
|
||||
class A {
|
||||
void bar(String s) {}
|
||||
|
||||
void foo(boolean b){
|
||||
if ((b ? null : "foo") != null) {
|
||||
bar(b ? null : "foo");
|
||||
if ((b ? foo(1) : foo(2)) != null) {
|
||||
bar(b ? foo(1) : foo(2));
|
||||
}
|
||||
}
|
||||
|
||||
static String foo(int x) {
|
||||
return x > 0 ? "pos" : x < 0 ? "neg" : null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user