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 2026/04/08 10:15:56 UTC

(camel) 28/38: (chores): fix SonarCloud S5993 in camel-zookeeper

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 713ee45f765e1a04573f7546dc18bb961fd1af0e
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Sat Mar 28 13:40:48 2026 +0000

    (chores): fix SonarCloud S5993 in camel-zookeeper
    
    Change public constructors of abstract classes to protected.
    
    Claude Code on behalf of Otavio R. Piske
    
    Co-Authored-By: Claude Sonnet 4.6 <no...@anthropic.com>
---
 .../component/zookeeper/operations/FutureEventDrivenOperation.java    | 2 +-
 .../camel/component/zookeeper/operations/ZooKeeperOperation.java      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/FutureEventDrivenOperation.java b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/FutureEventDrivenOperation.java
index 7811a039402b..771ca5627978 100644
--- a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/FutureEventDrivenOperation.java
+++ b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/FutureEventDrivenOperation.java
@@ -42,7 +42,7 @@ public abstract class FutureEventDrivenOperation<ResultType> extends ZooKeeperOp
 
     private WatchedEvent event;
 
-    public FutureEventDrivenOperation(ZooKeeper connection, String node, EventType... awaitedTypes) {
+    protected FutureEventDrivenOperation(ZooKeeper connection, String node, EventType... awaitedTypes) {
         super(connection, node);
         this.awaitedTypes = awaitedTypes;
     }
diff --git a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/ZooKeeperOperation.java b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/ZooKeeperOperation.java
index d3e0ebff6959..ce06f5d41003 100644
--- a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/ZooKeeperOperation.java
+++ b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/operations/ZooKeeperOperation.java
@@ -48,11 +48,11 @@ public abstract class ZooKeeperOperation<ResultType> {
 
     private boolean cancelled;
 
-    public ZooKeeperOperation(ZooKeeper connection, String node) {
+    protected ZooKeeperOperation(ZooKeeper connection, String node) {
         this(connection, node, true);
     }
 
-    public ZooKeeperOperation(ZooKeeper connection, String node, boolean producesExchange) {
+    protected ZooKeeperOperation(ZooKeeper connection, String node, boolean producesExchange) {
         this.connection = connection;
         this.node = node;
         this.producesExchange = producesExchange;