suggest abstract in interface (IDEA-85701)

This commit is contained in:
peter
2012-06-18 16:42:18 +02:00
parent 617e63d159
commit 72ecc025e2
3 changed files with 5 additions and 1 deletions
@@ -71,7 +71,7 @@ public class ModifierChooser {
return addKeywords(list, inInterface ? new String[][]{
new String[]{"public", "protected"},
new String[]{"static"},
new String[]{"final"}
new String[]{"final", "abstract"}
} : new String[][]{
new String[]{"public", "protected", "private"},
new String[]{"static"},
@@ -0,0 +1,3 @@
interface I {
<caret>
}
@@ -90,6 +90,7 @@ public class KeywordCompletionTest extends LightCompletionTestCase {
public void testNullInMethodCall() throws Exception { doTest(false); }
public void testNullInMethodCall2() throws Exception { doTest(false); }
public void testNewInMethodRefs() throws Exception { doTest(false); }
public void testAbstractInInterface() throws Exception { doTest(1, "abstract"); }
public void testTryInExpression() throws Exception {
configureByFile(BASE_PATH + "/" + getTestName(true) + ".java");