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 be0321c Fixed CS be0321c is described below commit be0321cb949c6f3559fa5d943945fde89f882f8b Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Mar 12 10:43:29 2021 +0100 Fixed CS --- .../java/org/apache/camel/impl/engine/CamelInternalProcessor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelInternalProcessor.java b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelInternalProcessor.java index e32dd3c..b13861f 100644 --- a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelInternalProcessor.java +++ b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelInternalProcessor.java @@ -106,7 +106,7 @@ public class CamelInternalProcessor extends DelegateAsyncProcessor implements In private final ShutdownStrategy shutdownStrategy; private final List<CamelInternalProcessorAdvice<?>> advices = new ArrayList<>(); private byte statefulAdvices; - private Object[] EMPTY_STATEFUL_STATES; + private Object[] emptyStatefulStates; private PooledObjectFactory<CamelInternalTask> taskFactory; public CamelInternalProcessor(CamelContext camelContext) { @@ -134,7 +134,7 @@ public class CamelInternalProcessor extends DelegateAsyncProcessor implements In LOG.trace("Using TaskFactory: {}", taskFactory); // create empty array we can use for reset - EMPTY_STATEFUL_STATES = new Object[statefulAdvices]; + emptyStatefulStates = new Object[statefulAdvices]; } ServiceHelper.buildService(taskFactory, processor); @@ -227,7 +227,7 @@ public class CamelInternalProcessor extends DelegateAsyncProcessor implements In @Override public void reset() { // reset array by copying over from empty which is a very fast JVM optimized operation - System.arraycopy(EMPTY_STATEFUL_STATES, 0, states, 0, statefulAdvices); + System.arraycopy(emptyStatefulStates, 0, states, 0, statefulAdvices); this.exchange = null; this.originalCallback = null; }