mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
type migration tests fixed
This commit is contained in:
@@ -468,9 +468,10 @@ public class TypeMigrationLabeler {
|
||||
|
||||
if (!userDefinedType) {
|
||||
final Set<PsiTypeParameter> collector;
|
||||
if (originalType instanceof PsiClassReferenceType) {
|
||||
final PsiType rootInitialType = getElementType(getCurrentRoot().getElement());
|
||||
if (rootInitialType instanceof PsiClassReferenceType) {
|
||||
collector = new HashSet<PsiTypeParameter>();
|
||||
final PsiJavaCodeReferenceElement reference = ((PsiClassReferenceType)originalType).getReference();
|
||||
final PsiJavaCodeReferenceElement reference = ((PsiClassReferenceType)rootInitialType).getReference();
|
||||
RefactoringUtil.collectTypeParameters(collector, reference);
|
||||
} else {
|
||||
collector = Collections.emptySet();
|
||||
|
||||
Reference in New Issue
Block a user