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


The following commit(s) were added to refs/heads/main by this push:
     new 728f9e2e99b CAMEL-15105: reduce unnecessary visibility on the 
AbstractExchange
728f9e2e99b is described below

commit 728f9e2e99b8be2e11d572ba1cec739c304ff5d6
Author: Otavio Rodolfo Piske <angusyo...@gmail.com>
AuthorDate: Thu Apr 27 19:38:16 2023 +0200

    CAMEL-15105: reduce unnecessary visibility on the AbstractExchange
---
 .../org/apache/camel/support/AbstractExchange.java | 32 +++++++++++-----------
 1 file changed, 16 insertions(+), 16 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 d125612d4c1..26162146be4 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
@@ -50,25 +50,25 @@ import static 
org.apache.camel.support.MessageHelper.copyBody;
  */
 class AbstractExchange implements Exchange {
     // number of elements in array
-    static final int INTERNAL_LENGTH = ExchangePropertyKey.values().length;
+    protected static final int INTERNAL_LENGTH = 
ExchangePropertyKey.values().length;
     // empty array for reset
-    static final Object[] EMPTY_INTERNAL_PROPERTIES = new 
Object[INTERNAL_LENGTH];
+    protected static final Object[] EMPTY_INTERNAL_PROPERTIES = new 
Object[INTERNAL_LENGTH];
 
-    final CamelContext context;
-    Map<String, Object> properties; // create properties on-demand as we use 
internal properties mostly
+    protected final CamelContext context;
+    protected Map<String, Object> properties; // create properties on-demand 
as we use internal properties mostly
     // optimize for internal exchange properties (not intended for end users)
-    final Object[] internalProperties = new Object[INTERNAL_LENGTH];
-    long created;
-    Message in;
-    Message out;
-    Exception exception;
-    String exchangeId;
-    ExchangePattern pattern;
-    Boolean externalRedelivered;
-    boolean routeStop;
-    boolean rollbackOnly;
-    boolean rollbackOnlyLast;
-    Map<String, SafeCopyProperty> safeCopyProperties;
+    protected final Object[] internalProperties = new Object[INTERNAL_LENGTH];
+    protected long created;
+    protected Message in;
+    protected Message out;
+    protected Exception exception;
+    protected String exchangeId;
+    protected ExchangePattern pattern;
+    protected Boolean externalRedelivered;
+    protected boolean routeStop;
+    protected boolean rollbackOnly;
+    protected boolean rollbackOnlyLast;
+    protected Map<String, SafeCopyProperty> safeCopyProperties;
     private final ExtendedExchangeExtension privateExtension;
 
     public AbstractExchange(CamelContext context) {

Reply via email to