mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-235649 'Unwrap if statement' of 'if' statement inside 'case' statement removes subsequent 'case' statements
GitOrigin-RevId: 16a50c6f792fb2d30956e72fdcaaca3ed2d5b985
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d84fd8b7dd
commit
32967db59d
+15
@@ -0,0 +1,15 @@
|
||||
// "Unwrap 'if' statement" "true"
|
||||
class X {
|
||||
public String testUnwrap(String f) {
|
||||
switch (f) {
|
||||
case "A":
|
||||
return "A";
|
||||
case "B":
|
||||
return "b";
|
||||
case "D":
|
||||
return "D";
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// "Unwrap 'if' statement" "true"
|
||||
class X {
|
||||
public String testUnwrap(String f) {
|
||||
switch (f) {
|
||||
case "A":
|
||||
return "A";
|
||||
case "B":
|
||||
if (t<caret>rue) {
|
||||
return "b";
|
||||
}
|
||||
return "B";
|
||||
case "D":
|
||||
return "D";
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user