mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inline method
This commit is contained in:
@@ -54,17 +54,12 @@ public abstract class StateSplitterEx implements StateSplitter {
|
||||
boolean isExternalStorageEnabled = filterOutExternalElements && StreamProviderKt.isExternalStorageEnabled();
|
||||
for (Element subState : state.getChildren()) {
|
||||
if (!isExternalStorageEnabled || subState.getAttribute(EXTERNAL_SYSTEM_ID_ATTRIBUTE) == null) {
|
||||
result.add(createItem(generator, subState, attributeName));
|
||||
result.add(createItem(subState.getAttributeValue(attributeName), generator, subState));
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
protected static Pair<Element, String> createItem(@NotNull UniqueNameGenerator generator, @NotNull Element element, @NotNull String attributeName) {
|
||||
return createItem(element.getAttributeValue(attributeName), generator, element);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
protected static Pair<Element, String> createItem(@NotNull String fileName, @NotNull UniqueNameGenerator generator, @NotNull Element element) {
|
||||
return Pair.create(element, generator.generateUniqueName(FileUtil.sanitizeFileName(fileName)) + ".xml");
|
||||
|
||||
Reference in New Issue
Block a user