mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
push condition inside call action (IDEA-88814)
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");
|
||||
}
|
||||
String foo(String p) {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") : foo("false");
|
||||
}
|
||||
String foo(String p) {return p;}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Push condition b inside method call" "false"
|
||||
class Foo {
|
||||
void bar(boolean b){
|
||||
String s = b <caret>? foo("true") : foo(false);
|
||||
}
|
||||
String foo(String p) {return p;}
|
||||
String foo(boolean b) {return "false";}
|
||||
}
|
||||
+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) : foo("false", false);
|
||||
}
|
||||
String foo(String p, boolean b) {return p;}
|
||||
}
|
||||
Reference in New Issue
Block a user