Files
openide/java/java-tests/testData/codeInsight/completion/normal/CompletePatternVariableInSwitchStmt_after.java
Nikita Eshkeev be5828b0ce [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
2021-07-12 19:10:45 +00:00

8 lines
90 B
Java

class Main {
void f(Object o) {
switch(o) {
case Integer<caret>
}
}
}