mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
+3
-7
@@ -45,12 +45,8 @@ public class ResourceBundleImpl extends ResourceBundle {
|
||||
if (ResourceBundleManager.getInstance(getProject()).isDefaultDissociated(myDefaultPropertiesFile.getVirtualFile())) {
|
||||
return Collections.singletonList(myDefaultPropertiesFile);
|
||||
}
|
||||
PsiFile[] children = ApplicationManager.getApplication().runReadAction(new Computable<PsiFile[]>() {
|
||||
@Override
|
||||
public PsiFile[] compute() {
|
||||
return myDefaultPropertiesFile.getParent().getFiles();
|
||||
}
|
||||
});
|
||||
PsiFile[] children =
|
||||
ApplicationManager.getApplication().runReadAction((Computable<PsiFile[]>)() -> myDefaultPropertiesFile.getParent().getFiles());
|
||||
final String baseName = getBaseName();
|
||||
List<PropertiesFile> result = new SmartList<PropertiesFile>();
|
||||
for (PsiFile file : children) {
|
||||
@@ -62,7 +58,7 @@ public class ResourceBundleImpl extends ResourceBundle {
|
||||
if (Comparing.strEqual(PropertiesUtil.getDefaultBaseName(file.getVirtualFile()), baseName)) {
|
||||
result.add(propertiesFile);
|
||||
if (!propertiesFile.equals(myDefaultPropertiesFile) &&
|
||||
propertiesFile.getName().compareTo(myDefaultPropertiesFile.getName()) == 0) {
|
||||
Comparing.equal(propertiesFile.getName(), myDefaultPropertiesFile.getName())) {
|
||||
return Collections.singletonList(myDefaultPropertiesFile);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user