Java: Don't offer "surround with statement" actions for 'case' and 'default' clauses (IDEA-204012)

This commit is contained in:
Pavel Dolgov
2019-01-18 14:56:40 +03:00
parent aeb696fd59
commit 51dbcef667
5 changed files with 53 additions and 1 deletions
@@ -0,0 +1,8 @@
class C {
void foo(int n) {
switch (n) {
case 1:
<selection>break;</selection>
}
}
}
@@ -0,0 +1,10 @@
class C {
void foo(int n) {
switch (n) {
case 1:
if () {
break;
}
}
}
}
@@ -0,0 +1,8 @@
class C {
void foo(int n) {
switch (n) {
<selection>case 1:</selection>
break;
}
}
}