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 90ada1b43ea21c846aebf295d9c7aa56d6f7571b Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Mon Apr 17 10:17:23 2023 +0200 (chores) camel-jetty-common: combined duplicated catch blocks --- .../java/org/apache/camel/component/jetty/JettyHttpComponent.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java index 35bac549b18..e62fb3609fd 100644 --- a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java +++ b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java @@ -687,13 +687,7 @@ public abstract class JettyHttpComponent extends HttpCommonComponent try { Method method = instance.getClass().getMethod("checkConfig"); return (Boolean) method.invoke(instance); - } catch (NoSuchMethodException ex) { - // ignore - } catch (IllegalArgumentException e) { - // ignore - } catch (IllegalAccessException e) { - // ignore - } catch (InvocationTargetException e) { + } catch (IllegalArgumentException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) { // ignore } return false;
