Skip to content

Commit

Permalink
Config Doc - Also ignore FileNotFoundException
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Aug 29, 2024
1 parent 95a246a commit 68d78a2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.quarkus.annotation.processor.util;

import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
Expand Down Expand Up @@ -180,7 +181,7 @@ public Optional<Map<String, Object>> getExtensionMetadata() {

return Optional.of(extensionMetadata);
}
} catch (NoSuchFileException e) {
} catch (NoSuchFileException | FileNotFoundException e) {
// ignore
// we could get the URI, create a Path and check that the path exists but it seems a bit overkill
return Optional.empty();
Expand Down

0 comments on commit 68d78a2

Please sign in to comment.