mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-refactoring] Cosmetic changes in MakeMethodOrClassStaticProcessor
GitOrigin-RevId: c176995cf73b98186fef0f1c7ee96c6298cbdfd8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
29a0d31ea5
commit
095fb1bd79
+4
-15
@@ -196,21 +196,10 @@ public abstract class MakeMethodOrClassStaticProcessor<T extends PsiTypeParamete
|
||||
|
||||
private static void createInaccessibleFieldsConflictDescription(ArrayList<PsiField> inaccessible, PsiElement container,
|
||||
MultiMap<PsiElement, String> conflicts) {
|
||||
if (inaccessible.size() == 1) {
|
||||
final PsiField field = inaccessible.get(0);
|
||||
conflicts.putValue(field, JavaRefactoringBundle.message("field.0.is.not.accessible",
|
||||
CommonRefactoringUtil.htmlEmphasize(field.getName()),
|
||||
RefactoringUIUtil.getDescription(container, true)));
|
||||
} else {
|
||||
|
||||
for (int j = 0; j < inaccessible.size(); j++) {
|
||||
PsiField field = inaccessible.get(j);
|
||||
conflicts.putValue(field, JavaRefactoringBundle.message("field.0.is.not.accessible",
|
||||
CommonRefactoringUtil.htmlEmphasize(field.getName()),
|
||||
RefactoringUIUtil.getDescription(container, true)));
|
||||
|
||||
|
||||
}
|
||||
for (PsiField field : inaccessible) {
|
||||
conflicts.putValue(field, JavaRefactoringBundle.message(
|
||||
"field.0.is.not.accessible", CommonRefactoringUtil.htmlEmphasize(field.getName()),
|
||||
RefactoringUIUtil.getDescription(container, true)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -414,7 +414,7 @@ locate.caret.inside.a.method=Locate caret inside a member
|
||||
locate.duplicates.action.name=Locate duplicates
|
||||
make.0.static=Make {0} Static
|
||||
make.method.static.title=Make Method Static
|
||||
make.static.command=Making {0} static
|
||||
make.static.command=Making {0} Static
|
||||
make.static.description.label=Make {0} {1} static
|
||||
make.static.elements.header={0} to be made static
|
||||
make.static.method.references.progress=Search for method references
|
||||
|
||||
Reference in New Issue
Block a user