mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-55146 Autocomplete case inside switch
indent, remove duplicates, restore completion after 'case' (IDEA-CR-12610)
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
public class StructuredConfigKey {
|
||||
{
|
||||
switch (x) {
|
||||
case 2:
|
||||
while (true) <caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
class A extends Base{
|
||||
void foo(B b){
|
||||
switch(b) {
|
||||
case FOO:
|
||||
GOO<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum B{
|
||||
FOO, BAR, GOO
|
||||
}
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
class A extends Base{
|
||||
void foo(B b){
|
||||
switch(b) {
|
||||
case FOO:
|
||||
case GOO:<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum B{
|
||||
FOO, BAR, GOO
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ class A extends Base{
|
||||
void foo(){
|
||||
B x = null;
|
||||
switch(x){
|
||||
case GOO:<caret>
|
||||
case GOO:<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user