mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-66069 Groovy: AssertionError at GrTypeParameterImpl.getOwner() on incorrect generic method definition
This commit is contained in:
+2
-2
@@ -313,8 +313,8 @@ public class GrTypeParameterImpl extends GrStubElementBase<GrTypeParameterStub>
|
||||
final PsiElement parent = getParent();
|
||||
if (parent == null) throw new PsiInvalidElementAccessException(this);
|
||||
final PsiElement parentParent = parent.getParent();
|
||||
if (parentParent != null && !(parentParent instanceof PsiTypeParameterListOwner)) {
|
||||
throw new AssertionError("CCE: " + parentParent);
|
||||
if (!(parentParent instanceof PsiTypeParameterListOwner)) {
|
||||
return null;
|
||||
}
|
||||
return (PsiTypeParameterListOwner)parentParent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user