mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-96713 Incorrect options shown for 'implements'
This commit is contained in:
+1
-1
@@ -799,7 +799,7 @@ public class PsiJavaCodeReferenceElementImpl extends CompositePsiElement impleme
|
||||
@Override
|
||||
public void processVariants(@NotNull final PsiScopeProcessor processor) {
|
||||
final OrFilter filter = new OrFilter();
|
||||
if (isInCode() && !(getParent() instanceof PsiImportStatement)) {
|
||||
if (isInCode() && !(getParent() instanceof PsiImportStatement) && !(getParent() instanceof PsiReferenceList)) {
|
||||
filter.addFilter(new AndFilter(ElementClassFilter.METHOD, new NotFilter(new ConstructorFilter())));
|
||||
filter.addFilter(ElementClassFilter.VARIABLE);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
public class Doo implements Intf.I<caret> {
|
||||
}
|
||||
|
||||
|
||||
|
||||
interface Intf {
|
||||
int INT_FIELD = 2;
|
||||
interface Inner {}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
public class Doo implements Intf.Inner<caret> {
|
||||
}
|
||||
|
||||
|
||||
|
||||
interface Intf {
|
||||
int INT_FIELD = 2;
|
||||
interface Inner {}
|
||||
}
|
||||
+1
@@ -994,6 +994,7 @@ public class ListUtils {
|
||||
public void testNewGenericClass() throws Throwable { doTest('\n') }
|
||||
public void testNewGenericInterface() throws Throwable { doTest() }
|
||||
public void testEnumPrivateFinal() throws Throwable { doTest() }
|
||||
public void testNoFieldsInImplements() throws Throwable { doTest() }
|
||||
|
||||
public void testSwitchConstantsFromReferencedClass() throws Throwable { doTest('\n') }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user