IDEA-165067 Unwrapping 'if' leads to non-compilable code

This commit is contained in:
peter
2016-12-22 14:06:29 +01:00
parent e7c54c02bb
commit 66b8d67f53
3 changed files with 45 additions and 1 deletions
@@ -0,0 +1,8 @@
// "Unwrap 'if' statement" "true"
class X {
private final boolean field = true;
String m() {
return "one";
}
}
@@ -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";
}
}