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:42 UTC

[camel] 05/13: (chores) camel-olingo2: 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 163726395d0665f5200eaa2f4238cc8d3d9da348
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Apr 17 10:18:09 2023 +0200

    (chores) camel-olingo2: combined duplicated catch blocks
---
 .../camel/component/olingo2/api/impl/AbstractFutureCallback.java      | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/components/camel-olingo2/camel-olingo2-api/src/main/java/org/apache/camel/component/olingo2/api/impl/AbstractFutureCallback.java b/components/camel-olingo2/camel-olingo2-api/src/main/java/org/apache/camel/component/olingo2/api/impl/AbstractFutureCallback.java
index 5567a157353..4640bd060cc 100644
--- a/components/camel-olingo2/camel-olingo2-api/src/main/java/org/apache/camel/component/olingo2/api/impl/AbstractFutureCallback.java
+++ b/components/camel-olingo2/camel-olingo2-api/src/main/java/org/apache/camel/component/olingo2/api/impl/AbstractFutureCallback.java
@@ -63,9 +63,7 @@ public abstract class AbstractFutureCallback<T> implements FutureCallback<HttpRe
                                 errorContext.getErrorCode(),
                                 errorContext.getException());
                     }
-                } catch (EntityProviderException e) {
-                    throw new ODataApplicationException(e.getMessage(), response.getLocale(), httpStatusCode, e);
-                } catch (IOException e) {
+                } catch (EntityProviderException | IOException e) {
                     throw new ODataApplicationException(e.getMessage(), response.getLocale(), httpStatusCode, e);
                 }
             }