Skip to content

Commit

Permalink
add serial version id
Browse files Browse the repository at this point in the history
  • Loading branch information
zebalu committed Dec 27, 2023
1 parent 4c2e269 commit 0f95d2d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ int longestPath(Coord start, Coord target) {
}

private static class StepTask extends RecursiveTask<Integer> {
private static final long serialVersionUID = 1L;
private final Step toProcess;
private final Map<Coord, Integer> forkIds;
private final Map<Integer, BitSet> connections;
Expand Down Expand Up @@ -232,7 +233,7 @@ protected Integer compute() {
if (nextTasks.isEmpty()) {
return 0;
} else {
return nextTasks.stream().mapToInt(t -> t.join()).max().orElseThrow();
return nextTasks.stream().mapToInt(StepTask::join).max().orElseThrow();
}
}
}
Expand Down

0 comments on commit 0f95d2d

Please sign in to comment.