You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/06/23 14:53:44 UTC
[camel] 11/17: (chores) camel-mapstruct: do not catch Throwable
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit cadfee12d67cac9c25453ddf8c32f5b424443ad3
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 23 14:51:06 2023 +0200
(chores) camel-mapstruct: do not catch Throwable
---
.../org/apache/camel/component/mapstruct/DefaultMapStructFinder.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-mapstruct/src/main/java/org/apache/camel/component/mapstruct/DefaultMapStructFinder.java b/components/camel-mapstruct/src/main/java/org/apache/camel/component/mapstruct/DefaultMapStructFinder.java
index c528b0ef3c9..713b65216e3 100644
--- a/components/camel-mapstruct/src/main/java/org/apache/camel/component/mapstruct/DefaultMapStructFinder.java
+++ b/components/camel-mapstruct/src/main/java/org/apache/camel/component/mapstruct/DefaultMapStructFinder.java
@@ -82,7 +82,7 @@ public class DefaultMapStructFinder extends ServiceSupport implements MapStructM
answer.incrementAndGet();
});
}
- } catch (Throwable e) {
+ } catch (Exception e) {
LOG.debug("Mapper class: {} is not a MapStruct Mapper. Skipping this class.", clazz);
}