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 f922b4a5b7db1467063668245e6ed6e8675b42c7 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Wed Jan 4 17:56:15 2023 +0100 (chores) camel-disruptor: avoid risky unboxing --- .../java/org/apache/camel/component/disruptor/DisruptorReference.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/DisruptorReference.java b/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/DisruptorReference.java index 8378f9dff7a..f65383fd806 100644 --- a/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/DisruptorReference.java +++ b/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/DisruptorReference.java @@ -404,7 +404,9 @@ public class DisruptorReference { blockingLatch.await(); final Exchange exchange = event.getSynchronizedExchange().cancelAndGetOriginalExchange(); - if (exchange.getProperty(DisruptorEndpoint.DISRUPTOR_IGNORE_EXCHANGE, false, boolean.class)) { + final boolean ignoreExchange + = exchange.getProperty(DisruptorEndpoint.DISRUPTOR_IGNORE_EXCHANGE, false, boolean.class); + if (ignoreExchange) { // Property was set and it was set to true, so don't process Exchange. LOGGER.trace("Ignoring exchange {}", exchange); } else {
