mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
good cod red: cls resolve should not erase parent type params (IDEA-85859)
This commit is contained in:
+1
-1
@@ -122,7 +122,7 @@ public class ClsJavaCodeReferenceElementImpl extends ClsElementImpl implements P
|
||||
int index = 0;
|
||||
for (PsiTypeParameter parameter : PsiUtil.typeParametersIterable((PsiClass)resolve)) {
|
||||
if (index >= myTypeParameters.length) {
|
||||
substitutionMap.put(parameter, null);
|
||||
if (parameter.getOwner() == resolve) substitutionMap.put(parameter, null);
|
||||
}
|
||||
else {
|
||||
substitutionMap.put(parameter, myTypeParameters[index].getType());
|
||||
|
||||
Reference in New Issue
Block a user