mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-51245 - IAE: InspectionEP.getLocalizedString
This commit is contained in:
@@ -130,9 +130,12 @@ public class InspectionEP extends LanguageExtensionPoint implements InspectionPr
|
||||
public boolean hasStaticDescription;
|
||||
|
||||
@Nullable
|
||||
private String getLocalizedString(String bundleName, @NotNull String key) {
|
||||
private String getLocalizedString(String bundleName, String key) {
|
||||
final String baseName = bundleName != null ? bundleName : bundle == null ? ((IdeaPluginDescriptor)myPluginDescriptor).getResourceBundleBaseName() : bundle;
|
||||
if (baseName == null) {
|
||||
if (baseName == null || key == null) {
|
||||
if (bundleName != null) {
|
||||
LOG.warn(implementationClass);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
final ResourceBundle resourceBundle = AbstractBundle.getResourceBundle(baseName, myPluginDescriptor.getPluginClassLoader());
|
||||
|
||||
Reference in New Issue
Block a user