mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
DFA: branch-specific reporting (IDEA-203016)
This commit is contained in:
+6
-2
@@ -1,8 +1,12 @@
|
||||
// "Replace with '(b ? null : "foo") != null ?:'" "true"
|
||||
// "Replace with '(b ? foo(1) : foo(2)) != null ?:'" "true"
|
||||
class A {
|
||||
void bar(String s) {}
|
||||
|
||||
void foo(boolean b){
|
||||
bar((b ? null : "foo") != null ? b ? null : "foo" : null);
|
||||
bar((b ? foo(1) : foo(2)) != null ? b ? foo(1) : foo(2) : null);
|
||||
}
|
||||
|
||||
static String foo(int x) {
|
||||
return x > 0 ? "pos" : x < 0 ? "neg" : null;
|
||||
}
|
||||
}
|
||||
+6
-2
@@ -1,8 +1,12 @@
|
||||
// "Replace with '(b ? null : "foo") != null ?:'" "true"
|
||||
// "Replace with '(b ? foo(1) : foo(2)) != null ?:'" "true"
|
||||
class A {
|
||||
void bar(String s) {}
|
||||
|
||||
void foo(boolean b){
|
||||
bar(b ? null<caret> : "foo");
|
||||
bar(b ? <caret>foo(1) : foo(2));
|
||||
}
|
||||
|
||||
static String foo(int x) {
|
||||
return x > 0 ? "pos" : x < 0 ? "neg" : null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user