mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
LAB-62 get rid of static *Bundle usages: public static fields
replace `public static String X = *Bundle.message(...)` with
```public static String getX() {
return *Bundle.message(...)
}
```
GitOrigin-RevId: cb9d31ce0cc938d794867c9467083c9968d8cbd5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f0a9c5f83b
commit
f0df6b34fe
@@ -40,7 +40,6 @@ public class CanBeFinalInspection extends GlobalJavaBatchInspectionTool {
|
||||
public boolean REPORT_CLASSES;
|
||||
public boolean REPORT_METHODS;
|
||||
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";
|
||||
|
||||
private class OptionsPanel extends JPanel {
|
||||
|
||||
@@ -45,7 +45,6 @@ public class UnusedDeclarationInspectionBase extends GlobalInspectionTool {
|
||||
public boolean ADD_NONJAVA_TO_ENTRIES = true;
|
||||
private boolean TEST_ENTRY_POINTS = true;
|
||||
|
||||
public static final String DISPLAY_NAME = InspectionsBundle.message("inspection.dead.code.display.name");
|
||||
public static final String SHORT_NAME = HighlightInfoType.UNUSED_SYMBOL_SHORT_NAME;
|
||||
public static final String ALTERNATIVE_ID = "UnusedDeclaration";
|
||||
|
||||
@@ -701,4 +700,8 @@ public class UnusedDeclarationInspectionBase extends GlobalInspectionTool {
|
||||
public List<EntryPoint> getExtensions() {
|
||||
return myExtensions;
|
||||
}
|
||||
|
||||
public static String getDISPLAY_NAME() {
|
||||
return InspectionsBundle.message("inspection.dead.code.display.name");
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,6 @@ import javax.swing.*;
|
||||
public class DeprecationInspection extends DeprecationInspectionBase {
|
||||
public static final String SHORT_NAME = DeprecationUtil.DEPRECATION_SHORT_NAME;
|
||||
public static final String ID = DeprecationUtil.DEPRECATION_ID;
|
||||
public static final String DISPLAY_NAME = DeprecationUtil.DEPRECATION_DISPLAY_NAME;
|
||||
public static final String IGNORE_METHODS_OF_DEPRECATED_NAME = "IGNORE_METHODS_OF_DEPRECATED";
|
||||
|
||||
public boolean IGNORE_INSIDE_DEPRECATED = true;
|
||||
|
||||
@@ -32,7 +32,7 @@ public class TestOnlyInspection extends AbstractBaseJavaLocalInspectionTool {
|
||||
@Override
|
||||
@NotNull
|
||||
public String getGroupDisplayName() {
|
||||
return GENERAL_GROUP_NAME;
|
||||
return getGENERAL_GROUP_NAME();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -27,7 +27,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
public class UnusedImportInspection extends GlobalSimpleInspectionTool {
|
||||
@NonNls
|
||||
public static final String SHORT_NAME = "UNUSED_IMPORT";
|
||||
public static final String DISPLAY_NAME = InspectionsBundle.message("unused.import.display.name");
|
||||
|
||||
@Override
|
||||
public void checkFile(@NotNull PsiFile file,
|
||||
@@ -61,4 +60,8 @@ public class UnusedImportInspection extends GlobalSimpleInspectionTool {
|
||||
public boolean worksInBatchModeOnly() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static String getDISPLAY_NAME() {
|
||||
return InspectionsBundle.message("unused.import.display.name");
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,6 @@ import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class UnusedSymbolLocalInspectionBase extends AbstractBaseJavaLocalInspectionTool implements UnfairLocalInspectionTool {
|
||||
@NonNls public static final String SHORT_NAME = HighlightInfoType.UNUSED_SYMBOL_SHORT_NAME;
|
||||
@NonNls public static final String DISPLAY_NAME = HighlightInfoType.UNUSED_SYMBOL_DISPLAY_NAME;
|
||||
@NonNls public static final String UNUSED_PARAMETERS_SHORT_NAME = "UnusedParameters";
|
||||
@NonNls public static final String UNUSED_ID = "unused";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user