We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d23d1fd commit c8ca64cCopy full SHA for c8ca64c
src/main/java/edu/ie3/datamodel/io/extractor/Extractor.java
@@ -52,9 +52,7 @@ public static Set<UniqueInputEntity> extractElements(NestedEntity nestedEntity)
52
resultingList.add(nestedHasLine.getLine());
53
}
54
if (nestedEntity instanceof HasEm nestedHasEms) {
55
- if (nestedHasEms.getControllingEm().isPresent()) {
56
- resultingList.add(nestedHasEms.getControllingEm().get());
57
- }
+ nestedHasEms.getControllingEm().ifPresent(resultingList::add);
58
59
60
if (resultingList.contains(null)) {
0 commit comments