Skip to content

Commit 23506ae

Browse files
committed
Improve a few comments
1 parent 86d7f5e commit 23506ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ private static class PathMap<V> {
7373
}
7474

7575
public Set<Path> getParents() {
76-
return (Set<Path>) values.keySet();
76+
return (Set<Path>) values.keySet(); // Cast for Checker Framework
7777
}
7878

7979
public Set<Path> getFileNames(Path parent) {
8080
var inner = values.get(parent);
81-
return inner == null ? Collections.emptySet() : (Set<Path>) inner.keySet();
81+
return inner == null ? Collections.emptySet() : (Set<Path>) inner.keySet(); // Cast for Checker Framework
8282
}
8383

8484
public @Nullable V remove(Path p) {
@@ -247,7 +247,7 @@ public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOEx
247247
var fullPath = dir.resolve(p);
248248
// The index may have been updated during the visit, so
249249
// even if `p` isn't contained in `visitedInDir`, by
250-
// now, it might have come into existance.
250+
// now, it may have come into existence.
251251
if (!Files.exists(fullPath)) {
252252
events.add(new WatchEvent(WatchEvent.Kind.DELETED, fullPath));
253253
}

0 commit comments

Comments
 (0)