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/04/14 13:41:59 UTC
[camel] 01/03: (chores) camel-base-engine: collapsed catch blocks
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 8eb30f21e22fdb622d2be0f472a11157e905adfb
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Apr 14 14:11:48 2023 +0200
(chores) camel-base-engine: collapsed catch blocks
---
.../java/org/apache/camel/impl/engine/IntrospectionSupport.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/IntrospectionSupport.java b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/IntrospectionSupport.java
index d4b074c4a51..61cfb71294b 100644
--- a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/IntrospectionSupport.java
+++ b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/IntrospectionSupport.java
@@ -726,11 +726,7 @@ final class IntrospectionSupport {
}
}
// ignore exceptions as there could be another setter method where we could type convert successfully
- } catch (SecurityException e) {
- typeConversionFailed = e;
- } catch (NoTypeConversionAvailableException e) {
- typeConversionFailed = e;
- } catch (IllegalArgumentException e) {
+ } catch (SecurityException | NoTypeConversionAvailableException | IllegalArgumentException e) {
typeConversionFailed = e;
}