This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new d3955cbee1a CAMEL-20015: Move internal state in AbstractExchange to Extended exchange where we have such kind of state. (code cleanup) d3955cbee1a is described below commit d3955cbee1a614e191e3ddb16e5b025948a7d4df Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Tue May 27 16:22:29 2025 +0200 CAMEL-20015: Move internal state in AbstractExchange to Extended exchange where we have such kind of state. (code cleanup) --- .../main/java/org/apache/camel/support/AbstractExchange.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/core/camel-support/src/main/java/org/apache/camel/support/AbstractExchange.java b/core/camel-support/src/main/java/org/apache/camel/support/AbstractExchange.java index efbca5cab88..1e914170930 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/AbstractExchange.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/AbstractExchange.java @@ -48,18 +48,19 @@ import org.apache.camel.util.ObjectHelper; * @see DefaultExchange */ abstract class AbstractExchange implements Exchange { - protected final EnumMap<ExchangePropertyKey, Object> internalProperties; - protected final CamelContext context; + private final CamelContext context; + private final ExtendedExchangeExtension privateExtension; + + protected final EnumMap<ExchangePropertyKey, Object> internalProperties; protected Map<String, Object> properties; // create properties on-demand as we use internal properties mostly + protected Map<String, SafeCopyProperty> safeCopyProperties; + protected ExchangeVariableRepository variableRepository; protected Message in; protected Message out; protected Exception exception; protected String exchangeId; protected ExchangePattern pattern; - protected Map<String, SafeCopyProperty> safeCopyProperties; - protected ExchangeVariableRepository variableRepository; - private final ExtendedExchangeExtension privateExtension; protected AbstractExchange(CamelContext context, EnumMap<ExchangePropertyKey, Object> internalProperties, Map<String, Object> properties) {