mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
push package local method up to interface: make method public without any warning
This commit is contained in:
@@ -179,10 +179,12 @@ public class PullUpConflictsUtil {
|
||||
}
|
||||
});
|
||||
if (abstractMethod.hasModifierProperty(PsiModifier.PACKAGE_LOCAL) && toDifferentPackage) {
|
||||
String message = "Can't make " + RefactoringUIUtil.getDescription(abstractMethod, false) +
|
||||
" abstract as it won't be accessible from the subclass.";
|
||||
message = CommonRefactoringUtil.capitalize(message);
|
||||
conflicts.putValue(abstractMethod, message);
|
||||
if (!isInterfaceTarget) {
|
||||
String message = "Can't make " + RefactoringUIUtil.getDescription(abstractMethod, false) +
|
||||
" abstract as it won't be accessible from the subclass.";
|
||||
message = CommonRefactoringUtil.capitalize(message);
|
||||
conflicts.putValue(abstractMethod, message);
|
||||
}
|
||||
}
|
||||
}
|
||||
return conflicts;
|
||||
|
||||
Reference in New Issue
Block a user