mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
Java: Add braces when extracting method from then/else branch or loop body (IDEA-181096)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
class ElseIf {
|
||||
String foo(boolean a, boolean b) {
|
||||
if (a) {
|
||||
|
||||
} else <selection>if (b) {
|
||||
String s = bar();
|
||||
if (s != null) return s;
|
||||
}</selection>
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
String bar() { return "";}
|
||||
}
|
||||
Reference in New Issue
Block a user