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 2023/03/27 08:31:08 UTC

[camel] branch camel-3.x updated: CAMEL-19202: Unused assignment in OnExceptionReifier

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

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


The following commit(s) were added to refs/heads/camel-3.x by this push:
     new 47a67005d77 CAMEL-19202: Unused assignment in OnExceptionReifier
47a67005d77 is described below

commit 47a67005d775a441a63d93a30f58f8bf1cfcc826
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Mar 27 10:30:35 2023 +0200

    CAMEL-19202: Unused assignment in OnExceptionReifier
---
 .../src/main/java/org/apache/camel/reifier/OnExceptionReifier.java   | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/OnExceptionReifier.java b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/OnExceptionReifier.java
index 836b5ba0c16..6db1c780899 100644
--- a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/OnExceptionReifier.java
+++ b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/OnExceptionReifier.java
@@ -83,11 +83,6 @@ public class OnExceptionReifier extends ProcessorReifier<OnExceptionDefinition>
             when = createPredicate(definition.getOnWhen().getExpression());
         }
 
-        Predicate handle = null;
-        if (definition.getHandled() != null) {
-            handle = createPredicate(definition.getHandled());
-        }
-
         return new CatchProcessor(classes, childProcessor, when);
     }