mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't check read-only status second time
This commit is contained in:
-1
@@ -219,7 +219,6 @@ public class ConvertToInstanceMethodProcessor extends BaseRefactoringProcessor {
|
||||
}
|
||||
|
||||
protected void performRefactoring(@NotNull UsageInfo[] usages) {
|
||||
if (!CommonRefactoringUtil.checkReadOnlyStatus(myProject, myTargetClass)) return;
|
||||
LocalHistoryAction a = LocalHistory.getInstance().startAction(getCommandName());
|
||||
try {
|
||||
doRefactoring(usages);
|
||||
|
||||
-2
@@ -247,8 +247,6 @@ public class MoveInstanceMethodProcessor extends BaseRefactoringProcessor{
|
||||
}
|
||||
|
||||
protected void performRefactoring(@NotNull UsageInfo[] usages) {
|
||||
if (!CommonRefactoringUtil.checkReadOnlyStatus(myProject, myTargetClass)) return;
|
||||
|
||||
PsiMethod patternMethod = createMethodToAdd();
|
||||
final List<PsiReference> docRefs = new ArrayList<>();
|
||||
for (UsageInfo usage : usages) {
|
||||
|
||||
Reference in New Issue
Block a user