From 68d78a2bf73c23051ea2388ea7dda5e167c73086 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Thu, 29 Aug 2024 10:56:43 +0200 Subject: [PATCH] Config Doc - Also ignore FileNotFoundException Related to https://github.com/quarkusio/quarkus/pull/42561#issuecomment-2316749444 --- .../java/io/quarkus/annotation/processor/util/FilerUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/processor/src/main/java/io/quarkus/annotation/processor/util/FilerUtil.java b/core/processor/src/main/java/io/quarkus/annotation/processor/util/FilerUtil.java index 84f72e37956bb..068606fe933b3 100644 --- a/core/processor/src/main/java/io/quarkus/annotation/processor/util/FilerUtil.java +++ b/core/processor/src/main/java/io/quarkus/annotation/processor/util/FilerUtil.java @@ -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; @@ -180,7 +181,7 @@ public Optional> 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();