IDEA-72104 Code completion for the final attribute of the enum

This commit is contained in:
peter
2011-09-19 19:38:06 +02:00
parent 876719ed90
commit bc61189599
4 changed files with 12 additions and 1 deletions
@@ -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>
}
@@ -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()