mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 00:20:55 +07:00
[java][switch completion] IDEA-271902 Fix the completion tail in case labels
Eliminate the insertion handler for JavaPsiClassReferenceElement because it might be confusing to the users not to be able to set the variable name themselves. In addition to that the patch also reverts the test data that was changed earlier because it was a perfectly fine piece of code and should not have been modified in the first place GitOrigin-RevId: 7046e638ed8f4c1cae72aca600fdfd06eaa3a502
This commit is contained in:
committed by
intellij-monorepo-bot
parent
00ac31059d
commit
be5828b0ce
@@ -0,0 +1,9 @@
|
||||
|
||||
class Main {
|
||||
private static final int LEVEL = 0;
|
||||
int f(Object o) {
|
||||
return switch(o) {
|
||||
case LEVE<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
class Main {
|
||||
private static final int LEVEL = 0;
|
||||
int f(Object o) {
|
||||
return switch(o) {
|
||||
case LEVEL -> <caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
class Main {
|
||||
private static final int LEVEL = 0;
|
||||
void f(Object o) {
|
||||
switch(o) {
|
||||
case LEVE<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
class Main {
|
||||
private static final int LEVEL = 0;
|
||||
void f(Object o) {
|
||||
switch(o) {
|
||||
case LEVEL:<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
class Main {
|
||||
int f(Object o) {
|
||||
return switch(o) {
|
||||
case Integer integer -> <caret>
|
||||
case Integer<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
class Main {
|
||||
void f(Object o) {
|
||||
switch(o) {
|
||||
case Integer integer:<caret>
|
||||
case Integer<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user