mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
LAB-62 get rid of static *Bundle usages: private static fields
replace `private static String X = *Bundle.message(...)` with
```private static String getX() {
return *Bundle.message(...)
}
```
GitOrigin-RevId: f7562fdda0b52c4a4b04c17b7bb43aa17310e20d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d72f96f8f7
commit
2004fcac98
@@ -42,7 +42,6 @@ public class CanBeFinalInspection extends GlobalJavaBatchInspectionTool {
|
||||
public boolean REPORT_FIELDS = true;
|
||||
public static final String DISPLAY_NAME = InspectionsBundle.message("inspection.can.be.final.display.name");
|
||||
@NonNls public static final String SHORT_NAME = "CanBeFinal";
|
||||
@NonNls private static final String QUICK_FIX_NAME = InspectionsBundle.message("inspection.can.be.final.accept.quickfix");
|
||||
|
||||
private class OptionsPanel extends JPanel {
|
||||
private final JCheckBox myReportClassesCheckbox;
|
||||
@@ -238,7 +237,7 @@ public class CanBeFinalInspection extends GlobalJavaBatchInspectionTool {
|
||||
@Override
|
||||
@NotNull
|
||||
public String getFamilyName() {
|
||||
return QUICK_FIX_NAME;
|
||||
return getQUICK_FIX_NAME();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -267,4 +266,7 @@ public class CanBeFinalInspection extends GlobalJavaBatchInspectionTool {
|
||||
}
|
||||
}
|
||||
|
||||
private static String getQUICK_FIX_NAME() {
|
||||
return InspectionsBundle.message("inspection.can.be.final.accept.quickfix");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user