File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/net/ornithemc/ploceus Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
33import java .io .BufferedReader ;
44import java .io .BufferedWriter ;
5- import java .io .FileNotFoundException ;
65import java .io .InputStreamReader ;
76import java .net .URI ;
87import java .nio .file .Files ;
8+ import java .nio .file .NoSuchFileException ;
99import java .nio .file .Path ;
1010import java .util .ArrayList ;
1111import java .util .List ;
@@ -128,7 +128,7 @@ private List<Library> getLibrariesFromCache() throws Exception {
128128
129129 try (BufferedReader br = Files .newBufferedReader (libsCache )) {
130130 json = GSON .fromJson (br , JsonObject .class );
131- } catch (FileNotFoundException e ) {
131+ } catch (NoSuchFileException e ) {
132132 return null ;
133133 }
134134
@@ -157,7 +157,7 @@ private void saveLibrariesToCache(List<Library> libs) throws Exception {
157157
158158 try (BufferedReader br = Files .newBufferedReader (libsCache )) {
159159 json = GSON .fromJson (br , JsonObject .class );
160- } catch (FileNotFoundException e ) {
160+ } catch (NoSuchFileException e ) {
161161 json = new JsonObject ();
162162 }
163163
You can’t perform that action at this time.
0 commit comments