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:23 UTC

[camel] 39/40: (chores) camel-consul: 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 250928c8020d5ac8dd0cb3d035f39c2186a72b85
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Sat Jun 17 10:00:45 2023 +0200

    (chores) camel-consul: align visibility of the constructor with the one declared in the class
---
 .../org/apache/camel/component/consul/ConsulClientConfiguration.java    | 2 +-
 .../apache/camel/component/consul/endpoint/AbstractConsulConsumer.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulClientConfiguration.java b/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulClientConfiguration.java
index b5dd71dddc7..7151e89df53 100644
--- a/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulClientConfiguration.java
+++ b/components/camel-consul/src/main/java/org/apache/camel/component/consul/ConsulClientConfiguration.java
@@ -74,7 +74,7 @@ public abstract class ConsulClientConfiguration implements Cloneable {
     @UriParam(label = "consumer,watch", defaultValue = "false")
     private boolean recursive;
 
-    public ConsulClientConfiguration() {
+    protected ConsulClientConfiguration() {
     }
 
     public String getUrl() {
diff --git a/components/camel-consul/src/main/java/org/apache/camel/component/consul/endpoint/AbstractConsulConsumer.java b/components/camel-consul/src/main/java/org/apache/camel/component/consul/endpoint/AbstractConsulConsumer.java
index c633350de78..2ceb2734121 100644
--- a/components/camel-consul/src/main/java/org/apache/camel/component/consul/endpoint/AbstractConsulConsumer.java
+++ b/components/camel-consul/src/main/java/org/apache/camel/component/consul/endpoint/AbstractConsulConsumer.java
@@ -77,7 +77,7 @@ abstract class AbstractConsulConsumer<C> extends DefaultConsumer {
     protected abstract class AbstractWatcher implements Runnable {
         private final C client;
 
-        public AbstractWatcher(C client) {
+        protected AbstractWatcher(C client) {
             this.client = client;
         }