Skip to content

Commit 5209921

Browse files
committed
Fix Checker Framework errors
1 parent 532ff11 commit 5209921

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

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

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

7979
public Set<Path> getFileNames(Path parent) {
@@ -85,7 +85,7 @@ public Set<Path> getFileNames(Path parent) {
8585
return apply(this::remove, p);
8686
}
8787

88-
private V apply(BiFunction<Path, Path, V> action, Path p) {
88+
private @Nullable V apply(BiFunction<Path, Path, @Nullable V> action, Path p) {
8989
var parent = p.getParent();
9090
var fileName = p.getFileName();
9191
if (parent != null && fileName != null) {

0 commit comments

Comments
 (0)