mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SuspiciousLocalesLanguagesInspection: custom resource bundles ignored
This commit is contained in:
+2
-4
@@ -16,10 +16,8 @@
|
||||
package com.intellij.codeInspection;
|
||||
|
||||
import com.intellij.codeInspection.ex.BaseLocalInspectionTool;
|
||||
import com.intellij.lang.properties.PropertiesBundle;
|
||||
import com.intellij.lang.properties.PropertiesImplUtil;
|
||||
import com.intellij.lang.properties.*;
|
||||
import com.intellij.lang.properties.ResourceBundle;
|
||||
import com.intellij.lang.properties.ResourceBundleManager;
|
||||
import com.intellij.lang.properties.customizeActions.DissociateResourceBundleAction;
|
||||
import com.intellij.lang.properties.psi.PropertiesFile;
|
||||
import com.intellij.openapi.project.Project;
|
||||
@@ -115,7 +113,7 @@ public class SuspiciousLocalesLanguagesInspection extends BaseLocalInspectionToo
|
||||
}
|
||||
final ResourceBundle resourceBundle = propertiesFile.getResourceBundle();
|
||||
final List<PropertiesFile> files = resourceBundle.getPropertiesFiles();
|
||||
if (files.size() < 2) {
|
||||
if (!(resourceBundle instanceof ResourceBundleImpl) || files.size() < 2) {
|
||||
return null;
|
||||
}
|
||||
List<Locale> bundleLocales = ContainerUtil.mapNotNull(files, new Function<PropertiesFile, Locale>() {
|
||||
|
||||
Reference in New Issue
Block a user