LAB-62 get rid of static *Bundle usages: more fields

GitOrigin-RevId: 69ded152ad5996ae07c45dc4fd6ff20224d25572
This commit is contained in:
Dmitry.Krasilschikov
2019-12-31 20:54:06 +02:00
committed by intellij-monorepo-bot
parent 240e2cea4c
commit 38f6f13df8
33 changed files with 144 additions and 144 deletions

View File

@@ -248,11 +248,11 @@ public final class VisibilityInspection extends GlobalJavaBatchInspectionTool {
}
else {
if (access.equals(PsiModifier.PACKAGE_LOCAL)) {
message = getCAN_BE_PACKAGE_LOCAL();
message = getCanBePackageLocal();
quickFixName += VisibilityUtil.toPresentableText(PsiModifier.PACKAGE_LOCAL);
}
else {
message = getCAN_BE_PROTECTED();
message = getCanBeProtected();
quickFixName += VisibilityUtil.toPresentableText(PsiModifier.PROTECTED);
}
}
@@ -695,11 +695,11 @@ public final class VisibilityInspection extends GlobalJavaBatchInspectionTool {
return InspectionsBundle.message("inspection.visibility.compose.suggestion", VisibilityUtil.toPresentableText(PsiModifier.PRIVATE));
}
private static String getCAN_BE_PACKAGE_LOCAL() {
private static String getCanBePackageLocal() {
return InspectionsBundle.message("inspection.visibility.compose.suggestion", VisibilityUtil.toPresentableText(PsiModifier.PACKAGE_LOCAL));
}
private static String getCAN_BE_PROTECTED() {
private static String getCanBeProtected() {
return InspectionsBundle.message("inspection.visibility.compose.suggestion", VisibilityUtil.toPresentableText(PsiModifier.PROTECTED));
}
}