mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
type migration: TypeMigrationLabeler inline 1-line 1-usage method
This commit is contained in:
@@ -755,7 +755,7 @@ public class TypeMigrationLabeler {
|
||||
|
||||
public void setRootAndMigrate(final TypeMigrationUsageInfo newRootUsageInfo, final PsiType migrationType, final PsiReference[] usages) {
|
||||
final TypeMigrationUsageInfo oldRoot = getCurrentRoot();
|
||||
setCurrentRoot(newRootUsageInfo);
|
||||
myCurrentRoot = newRootUsageInfo;
|
||||
PsiElement root = newRootUsageInfo.getElement();
|
||||
if (root instanceof PsiMethod) {
|
||||
migrateMethodReturnExpression(migrationType, (PsiMethod)root);
|
||||
@@ -904,10 +904,6 @@ public class TypeMigrationLabeler {
|
||||
return myRootsTree;
|
||||
}
|
||||
|
||||
public void setCurrentRoot(final TypeMigrationUsageInfo currentRoot) {
|
||||
myCurrentRoot = currentRoot;
|
||||
}
|
||||
|
||||
TypeMigrationUsageInfo getCurrentRoot() {
|
||||
return myCurrentRoot;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user