mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
IDEA-187474 Ternary condition is not boolean: add a quick-fix for method call
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// "Make 'foo' return 'boolean'" "true"
|
||||
class Test {
|
||||
void bar() {
|
||||
System.out.println(foo() ? "x" : "y");
|
||||
}
|
||||
|
||||
boolean foo() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Make 'foo' return 'boolean'" "true"
|
||||
class Test {
|
||||
void bar() {
|
||||
System.out.println(fo<caret>o() ? "x" : "y");
|
||||
}
|
||||
|
||||
int foo() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user