mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
pull up: skip conflict if super method is available in target module
This commit is contained in:
@@ -260,6 +260,11 @@ public class RefactoringConflictsUtil {
|
||||
!CommonRefactoringUtil.isAncestor(resolved, scopes) &&
|
||||
!PsiSearchScopeUtil.isInScope(resolveScope, resolved) &&
|
||||
!(resolved instanceof LightElement)) {
|
||||
if (resolved instanceof PsiMethod) {
|
||||
for (PsiMethod superMethod : ((PsiMethod)resolved).findDeepestSuperMethods()) {
|
||||
if (PsiSearchScopeUtil.isInScope (resolveScope, superMethod)) return;
|
||||
}
|
||||
}
|
||||
final String scopeDescription = RefactoringUIUtil.getDescription(ConflictsUtil.getContainer(reference), true);
|
||||
final String message = RefactoringBundle.message("0.referenced.in.1.will.not.be.accessible.in.module.2",
|
||||
RefactoringUIUtil.getDescription(resolved, true),
|
||||
|
||||
Reference in New Issue
Block a user