mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
isReifiable should not check outer class type params for static inners
This commit is contained in:
+1
-1
@@ -1167,7 +1167,7 @@ public class GenericsHighlightUtil {
|
||||
return false;
|
||||
}
|
||||
if (parameters.length == 0) {
|
||||
if (resolved != null) {
|
||||
if (resolved != null && !resolved.hasModifierProperty(PsiModifier.STATIC)) {
|
||||
final PsiClass containingClass = resolved.getContainingClass();
|
||||
if (containingClass != null) {
|
||||
final PsiTypeParameter[] containingClassTypeParameters = containingClass.getTypeParameters();
|
||||
|
||||
+5
@@ -144,4 +144,9 @@ class Outer<E> {
|
||||
final Inner[] i = <error descr="Generic array creation">new Inner[10]</error>;
|
||||
class Inner {
|
||||
}
|
||||
}
|
||||
class Outer1<E> {
|
||||
final Inner[] i = new Inner[10];
|
||||
static class Inner {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user