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 f951ed38001904858d444786a42e4aafa113fb09
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Mon Apr 17 10:17:55 2023 +0200

    (chores) camel-jmx: combined duplicated catch blocks
---
 .../java/org/apache/camel/component/jmx/NotificationXmlFormatter.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/NotificationXmlFormatter.java
 
b/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/NotificationXmlFormatter.java
index da4131dda79..238ec8aa1b3 100644
--- 
a/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/NotificationXmlFormatter.java
+++ 
b/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/NotificationXmlFormatter.java
@@ -136,9 +136,7 @@ public class NotificationXmlFormatter extends 
ServiceSupport {
             marshaller.marshal(bean, sw);
 
             return sw.toString();
-        } catch (JAXBException e) {
-            throw new NotificationFormatException(e);
-        } catch (DatatypeConfigurationException e) {
+        } catch (DatatypeConfigurationException | JAXBException e) {
             throw new NotificationFormatException(e);
         }
     }

Reply via email to