Skip to content

Commit 81a085a

Browse files
committed
Fixed CF config and test config
1 parent a2919dc commit 81a085a

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/main/checkerframework/nio-file.astub

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ public interface WatchService {
1212
public interface WatchEvent<T> {
1313
@Nullable T context();
1414
}
15+
16+
public class NoSuchFileException extends FileSystemException {
17+
public NoSuchFileException(String file, @Nullable String other, String reason);
18+
}
19+

src/test/java/engineering/swat/watch/APIErrorsTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
import java.io.IOException;
3232
import java.nio.file.FileSystemException;
33-
import java.nio.file.Files;
33+
import java.nio.file.NoSuchFileException;
3434

3535
import org.awaitility.Awaitility;
3636
import org.junit.jupiter.api.AfterEach;
@@ -102,7 +102,7 @@ void noRelativePaths() {
102102
void nonExistingDirectory() throws IOException {
103103
var nonExistingDir = testDir.getTestDirectory().resolve("test-not-existing");
104104
var w = Watch.build(nonExistingDir, WatchScope.PATH_AND_CHILDREN).on(e -> {});
105-
assertThrowsExactly(FileSystemException.class, w::start);
105+
assertThrowsExactly(NoSuchFileException.class, w::start);
106106
}
107107

108108

0 commit comments

Comments
 (0)