mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
push condition in call: fix different qualifiers (IDEA-147901)
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
// "Push condition 'b' inside method call" "true"
|
||||
class Foo {
|
||||
void bar(boolean b){
|
||||
String s = foo(b ? "true" : "false", true).substring(0);
|
||||
}
|
||||
String foo(String p, boolean b) {return p;}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Push condition 'b' inside method call" "true"
|
||||
class Foo {
|
||||
void bar(boolean b){
|
||||
String s = foo("true", true).substring(b ? 1 : 2).substring(0);
|
||||
}
|
||||
String foo(String p, boolean b) {return p;}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Push condition 'b' inside method call" "true"
|
||||
class Foo {
|
||||
void bar(boolean b){
|
||||
String s = b <caret>? foo("true", true).substring(0) : foo("false", true).substring(0);
|
||||
}
|
||||
String foo(String p, boolean b) {return p;}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Push condition 'b' inside method call" "false"
|
||||
class Foo {
|
||||
void bar(boolean b){
|
||||
String s = b <caret>? foo("true", true).substring(0) : foo("false", true).substring(1);
|
||||
}
|
||||
String foo(String p, boolean b) {return p;}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Push condition 'b' inside method call" "true"
|
||||
class Foo {
|
||||
void bar(boolean b){
|
||||
String s = b <caret>? foo("true", true).substring(1).substring(0) : foo("true", true).substring(2).substring(0);
|
||||
}
|
||||
String foo(String p, boolean b) {return p;}
|
||||
}
|
||||
Reference in New Issue
Block a user