type migration: TypeMigrationLabeler inline 1-line 1-usage method

This commit is contained in:
Dmitry Batkovich
2015-12-10 14:09:05 +03:00
parent dc65c36dc8
commit 3746d7fdaf
@@ -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;
}