Skip to content

Commit 79312db

Browse files
committed
Make field final
1 parent 98225e3 commit 79312db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected class Generator extends MemorylessRescanner.Generator {
8989
// approximate `DELETED` events that happened since the previous rescan.
9090
// Instances of this class are supposed to be used non-concurrently, so
9191
// no synchronization to access this field is needed.
92-
private Deque<Set<Path>> visited = new ArrayDeque<>();
92+
private final Deque<Set<Path>> visited = new ArrayDeque<>();
9393

9494
public Generator(Path path, WatchScope scope) {
9595
super(path, scope);

0 commit comments

Comments
 (0)