Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
persy97 committed Oct 7, 2023
1 parent 59ee4f5 commit 3ddb69c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public ConnectionMap(final ConnectionMap<T> 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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 3ddb69c

Please sign in to comment.