Skip to content

Commit

Permalink
Fixed annotation processor NoSuchFile exception not caught
Browse files Browse the repository at this point in the history
  • Loading branch information
urbim committed Nov 14, 2018
1 parent b1bee63 commit d0e32b2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import javax.tools.FileObject;
import javax.tools.StandardLocation;
import java.io.*;
import java.nio.file.NoSuchFileException;
import java.util.Set;

/**
Expand Down Expand Up @@ -64,7 +65,7 @@ private static FileObject readOldFile(Set<String> content, String resourceName,
reader = resource.openReader(true);
AnnotationProcessorUtil.readOldFile(content, reader);
return resource;
} catch (FileNotFoundException e) {
} catch (FileNotFoundException | NoSuchFileException e) {
// close reader, return null
} finally {
if (reader != null) {
Expand Down

0 comments on commit d0e32b2

Please sign in to comment.