Skip to content

Commit

Permalink
Small WW bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kerim1 committed May 31, 2023
1 parent 9582ab8 commit 9256457
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,12 @@ public static <V> Optional<V> getProp(final Element vertex, final String key, Cl
}

public static Optional<Collection> getCollectionByVreId(Element element, Vres mappings, String vreId) {

final List<Collection> filteredTypes = Arrays.asList(getEntityTypesOrDefault(element))
.stream()
final List<Collection> filteredTypes = Arrays.stream(getEntityTypesOrDefault(element))
.filter(type -> mappings.getCollectionForType(type).isPresent())
.map(type -> mappings.getCollectionForType(type).get())
.filter(collection -> collection.getVreName().equals(vreId))
.collect(toList());

return Optional.ofNullable(filteredTypes.size() > 0 ? filteredTypes.get(0) : null);
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ private void dumpItem(Object item, StringBuilder result) {
LOG.error(e.getMessage(), e);
}
} else {
result.append(item);
result.append(item).append("\n");
}
}
Expand Down

0 comments on commit 9256457

Please sign in to comment.