IDEA-274822 [convert switch to if] fix: avoid calls to PsiSwitchLabelStatementBase.isDefaultCase

GitOrigin-RevId: e72998a2f37c21d4c78096da3c45d56f1d7fd2aa
This commit is contained in:
Alexandr Suhinin
2021-08-03 06:43:20 +00:00
committed by intellij-monorepo-bot
parent e746a1fd51
commit 5a1a3450b4
9 changed files with 61 additions and 5 deletions
@@ -0,0 +1,6 @@
// "Unwrap 'switch'" "true"
public class One {
void f1(String a) {
System.out.println("None");
}
}
@@ -0,0 +1,8 @@
// "Unwrap 'switch'" "true"
public class One {
void f1(String a) {
sw<caret>itch (a) {
case default -> System.out.println("None");
}
}
}