diff --git a/bundles/sirix-core/src/main/java/io/sirix/diff/algorithm/fmse/ConnectionMap.java b/bundles/sirix-core/src/main/java/io/sirix/diff/algorithm/fmse/ConnectionMap.java index 7fdb49ad3..5f34e2a24 100644 --- a/bundles/sirix-core/src/main/java/io/sirix/diff/algorithm/fmse/ConnectionMap.java +++ b/bundles/sirix-core/src/main/java/io/sirix/diff/algorithm/fmse/ConnectionMap.java @@ -63,7 +63,7 @@ public ConnectionMap(final ConnectionMap map) { */ public void set(final T origin, final T destination, final boolean bool) { requireNonNull(destination); - map.computeIfAbsent(requireNonNull(origin), () -> map.put(origin, new HashMap<>())); + map.computeIfAbsent(requireNonNull(origin), o -> map.put(o, new HashMap<>())); map.get(origin).put(destination, bool); } diff --git a/bundles/sirix-core/src/main/java/io/sirix/diff/algorithm/fmse/LabelFMSEVisitor.java b/bundles/sirix-core/src/main/java/io/sirix/diff/algorithm/fmse/LabelFMSEVisitor.java index 778d46467..56b1e3cc5 100644 --- a/bundles/sirix-core/src/main/java/io/sirix/diff/algorithm/fmse/LabelFMSEVisitor.java +++ b/bundles/sirix-core/src/main/java/io/sirix/diff/algorithm/fmse/LabelFMSEVisitor.java @@ -95,7 +95,7 @@ public VisitResultType visit(final ImmutableText node) { */ private void addLeafLabel() { final NodeKind nodeKind = rtx.getKind(); - leafLabels.computeIfAbsent(nodeKind, () -> leafLabels.put(nodeKind, new ArrayList<>())); + leafLabels.computeIfAbsent(nodeKind, nk -> leafLabels.put(nk, new ArrayList<>())); leafLabels.get(nodeKind).add(rtx.getNodeKey()); }