You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/01/08 15:10:11 UTC

[camel] branch master updated: camel-activemq: remove unnecessary exception rethrow (#4850)

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 917ee40  camel-activemq: remove unnecessary exception rethrow (#4850)
917ee40 is described below

commit 917ee40c3201ab932ba1cabe5f2dd112b68ec051
Author: Otavio Rodolfo Piske <or...@users.noreply.github.com>
AuthorDate: Fri Jan 8 16:09:52 2021 +0100

    camel-activemq: remove unnecessary exception rethrow (#4850)
---
 .../org/apache/camel/component/activemq/ActiveMQConfiguration.java  | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/components/camel-activemq/src/main/java/org/apache/camel/component/activemq/ActiveMQConfiguration.java b/components/camel-activemq/src/main/java/org/apache/camel/component/activemq/ActiveMQConfiguration.java
index bb039ab..1ee94a6 100644
--- a/components/camel-activemq/src/main/java/org/apache/camel/component/activemq/ActiveMQConfiguration.java
+++ b/components/camel-activemq/src/main/java/org/apache/camel/component/activemq/ActiveMQConfiguration.java
@@ -213,11 +213,7 @@ public class ActiveMQConfiguration extends JmsConfiguration {
             try {
                 return contextClassLoader.loadClass(name);
             } catch (ClassNotFoundException e) {
-                try {
-                    return loader.loadClass(name);
-                } catch (ClassNotFoundException e1) {
-                    throw e1;
-                }
+                return loader.loadClass(name);
             }
         } else {
             return loader.loadClass(name);