mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-28 17:29:55 +07:00
ConvertSwitchToIfIntention: fix processing of empty blocks
IDEA-205137 `Replace Switch with If` produce exceptions IDEA-205122 Unwrap switch fails with exception
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// "Unwrap 'switch'" "true"
|
||||
public class One {
|
||||
void n() {
|
||||
if (true) {
|
||||
swit<caret>ch (0) {
|
||||
default -> {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user