Skip to content

Commit 84606ca

Browse files
committed
Remove a reference to FileNotFoundException in a test, use NoSuchFileException instead.
Enables consistency with the rest of the API.
1 parent 4f1eccf commit 84606ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java-compiler-testing/src/test/java/io/github/ascopes/jct/tests/unit/compilers/AbstractJctCompilerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@
5050
import io.github.ascopes.jct.filemanagers.JctFileManagerFactory;
5151
import io.github.ascopes.jct.filemanagers.LoggingMode;
5252
import io.github.ascopes.jct.workspaces.Workspace;
53-
import java.io.FileNotFoundException;
5453
import java.io.IOException;
5554
import java.io.UnsupportedEncodingException;
5655
import java.nio.charset.Charset;
5756
import java.nio.charset.StandardCharsets;
5857
import java.nio.file.FileSystemException;
58+
import java.nio.file.NoSuchFileException;
5959
import java.util.ArrayList;
6060
import java.util.Arrays;
6161
import java.util.Collection;
@@ -511,7 +511,7 @@ void configureInvokesConfigurerOnTheCompiler() throws Throwable {
511511
RuntimeException.class,
512512
IOException.class,
513513
FileSystemException.class,
514-
FileNotFoundException.class,
514+
NoSuchFileException.class,
515515
UnsupportedEncodingException.class,
516516
IndexOutOfBoundsException.class,
517517
SecurityException.class,

0 commit comments

Comments
 (0)