Skip to content

Commit 5893890

Browse files
committed
Fix initialization of IndexingRescanner.Generator
1 parent 214d0ac commit 5893890

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/engineering/swat/watch/impl/overflows/IndexingRescanner.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ protected class Generator extends MemorylessRescanner.Generator {
9393

9494
public Generator(Path path, WatchScope scope) {
9595
super(path, scope);
96+
visited.push(new HashSet<>()); // Initial set for content of `path`
9697
}
9798

9899
private <T> void addToPeeked(Deque<Set<T>> deque, T t) {

0 commit comments

Comments
 (0)