mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
IDEA-165067 Unwrapping 'if' leads to non-compilable code
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "Unwrap 'if' statement" "true"
|
||||
class X {
|
||||
private final boolean field = true;
|
||||
|
||||
String m() {
|
||||
return "one";
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Unwrap 'if' statement" "true"
|
||||
class X {
|
||||
private final boolean field = true;
|
||||
|
||||
String m() {
|
||||
if (fiel<caret>d) return "one";
|
||||
return "two";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user