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/17 09:59:43 UTC
[camel] 06/13: (chores) camel-olingo4: combined duplicated 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 95d5f36c8c406504e4ecc32031c8d6d6363b266a
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Apr 17 10:19:51 2023 +0200
(chores) camel-olingo4: combined duplicated catch blocks
---
.../java/org/apache/camel/component/olingo4/Olingo4Component.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/components/camel-olingo4/camel-olingo4-component/src/main/java/org/apache/camel/component/olingo4/Olingo4Component.java b/components/camel-olingo4/camel-olingo4-component/src/main/java/org/apache/camel/component/olingo4/Olingo4Component.java
index 24e1e822553..630822a3f0c 100644
--- a/components/camel-olingo4/camel-olingo4-component/src/main/java/org/apache/camel/component/olingo4/Olingo4Component.java
+++ b/components/camel-olingo4/camel-olingo4-component/src/main/java/org/apache/camel/component/olingo4/Olingo4Component.java
@@ -161,9 +161,7 @@ public class Olingo4Component extends AbstractApiComponent<Olingo4ApiName, Oling
}
try {
asyncClientBuilder.setSSLContext(sslContextParameters.createSSLContext(getCamelContext()));
- } catch (GeneralSecurityException e) {
- throw RuntimeCamelException.wrapRuntimeCamelException(e);
- } catch (IOException e) {
+ } catch (IOException | GeneralSecurityException e) {
throw RuntimeCamelException.wrapRuntimeCamelException(e);
}