mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-72104 Code completion for the final attribute of the enum
This commit is contained in:
@@ -99,7 +99,7 @@ scopes:
|
||||
boolean containModifierFlag = false;
|
||||
if (list != null) {
|
||||
for (@Modifier String keyword : keywords) {
|
||||
if (list.hasModifierProperty(keyword)) {
|
||||
if (list.hasExplicitModifier(keyword)) {
|
||||
containModifierFlag = true;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
enum Goo {
|
||||
a,b;
|
||||
|
||||
private fin<caret>
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
enum Goo {
|
||||
a,b;
|
||||
|
||||
private final <caret>
|
||||
}
|
||||
+1
@@ -928,6 +928,7 @@ public class NormalCompletionTest extends LightFixtureCompletionTestCase {
|
||||
public void testMethodParameterTypeDot() throws Throwable { doAntiTest() }
|
||||
public void testNewGenericClass() throws Throwable { doTest('\n') }
|
||||
public void testNewGenericInterface() throws Throwable { doTest() }
|
||||
public void testEnumPrivateFinal() throws Throwable { doTest() }
|
||||
|
||||
public void testUnfinishedMethodTypeParameter() throws Throwable {
|
||||
configure()
|
||||
|
||||
Reference in New Issue
Block a user