You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2023/06/17 12:25:19 UTC

[camel] 35/40: (chores) camel-nitrite: align visibility of the constructor with the one declared in the class

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 4d50236a03ece62a44f7b6fd3f2c2c846368a402
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Sat Jun 17 09:58:36 2023 +0200

    (chores) camel-nitrite: align visibility of the constructor with the one declared in the class
---
 .../component/nitrite/operation/AbstractPayloadAwareOperation.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/AbstractPayloadAwareOperation.java b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/AbstractPayloadAwareOperation.java
index c944e2da4b9..cae3b86eda9 100644
--- a/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/AbstractPayloadAwareOperation.java
+++ b/components/camel-nitrite/src/main/java/org/apache/camel/component/nitrite/operation/AbstractPayloadAwareOperation.java
@@ -26,15 +26,15 @@ import org.dizitart.no2.Document;
 public abstract class AbstractPayloadAwareOperation extends AbstractNitriteOperation {
     private Expression expression;
 
-    public AbstractPayloadAwareOperation(Object body) {
+    protected AbstractPayloadAwareOperation(Object body) {
         this.expression = ExpressionBuilder.constantExpression(body);
     }
 
-    public AbstractPayloadAwareOperation(Expression expression) {
+    protected AbstractPayloadAwareOperation(Expression expression) {
         this.expression = expression;
     }
 
-    public AbstractPayloadAwareOperation() {
+    protected AbstractPayloadAwareOperation() {
         this.expression = ExpressionBuilder.bodyExpression();
     }