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:24:59 UTC

[camel] 15/40: (chores) camel-ftp: 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 12d592d874a19a6def2a346a12b810cc54ebb509
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Sat Jun 17 09:36:41 2023 +0200

    (chores) camel-ftp: align visibility of the constructor with the one declared in the class
---
 .../org/apache/camel/component/file/remote/RemoteFileComponent.java   | 4 ++--
 .../apache/camel/component/file/remote/RemoteFileConfiguration.java   | 4 ++--
 .../org/apache/camel/component/file/remote/RemoteFileConsumer.java    | 4 ++--
 .../org/apache/camel/component/file/remote/RemoteFileEndpoint.java    | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileComponent.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileComponent.java
index c6463fc49f8..cf142aa10e1 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileComponent.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileComponent.java
@@ -28,10 +28,10 @@ public abstract class RemoteFileComponent<T> extends GenericFileComponent<T> {
 
     public static final String REMOTE_FILE_INPUT_STREAM = "CamelRemoteFileInputStream";
 
-    public RemoteFileComponent() {
+    protected RemoteFileComponent() {
     }
 
-    public RemoteFileComponent(CamelContext context) {
+    protected RemoteFileComponent(CamelContext context) {
         super(context);
     }
 }
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileConfiguration.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileConfiguration.java
index 5dea049b333..f650f5daa4f 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileConfiguration.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileConfiguration.java
@@ -114,10 +114,10 @@ public abstract class RemoteFileConfiguration extends GenericFileConfiguration {
                                                                                 + "upload the file. However if this causes problems, you can turn this option off.")
     private boolean sendNoop = true;
 
-    public RemoteFileConfiguration() {
+    protected RemoteFileConfiguration() {
     }
 
-    public RemoteFileConfiguration(URI uri) {
+    protected RemoteFileConfiguration(URI uri) {
         configure(uri);
     }
 
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileConsumer.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileConsumer.java
index a829fd5c3e8..82ff2fff563 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileConsumer.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileConsumer.java
@@ -41,8 +41,8 @@ public abstract class RemoteFileConsumer<T> extends GenericFileConsumer<T> {
     protected transient boolean loggedIn;
     protected transient boolean loggedInWarning;
 
-    public RemoteFileConsumer(RemoteFileEndpoint<T> endpoint, Processor processor, RemoteFileOperations<T> operations,
-                              GenericFileProcessStrategy processStrategy) {
+    protected RemoteFileConsumer(RemoteFileEndpoint<T> endpoint, Processor processor, RemoteFileOperations<T> operations,
+                                 GenericFileProcessStrategy processStrategy) {
         super(endpoint, processor, operations, processStrategy);
         this.setPollStrategy(new RemoteFilePollingConsumerPollStrategy());
     }
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java
index 058f6ac834c..fb15509cf2f 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFileEndpoint.java
@@ -67,7 +67,7 @@ public abstract class RemoteFileEndpoint<T> extends GenericFileEndpoint<T> {
                                                          + "not be downloaded.")
     private boolean download = true;
 
-    public RemoteFileEndpoint() {
+    protected RemoteFileEndpoint() {
         // ftp must be synchronous as the ftp-client is not thread-safe
         setSynchronous(true);
         // no args constructor for spring bean endpoint configuration
@@ -79,7 +79,7 @@ public abstract class RemoteFileEndpoint<T> extends GenericFileEndpoint<T> {
         setPollStrategy(new RemoteFilePollingConsumerPollStrategy());
     }
 
-    public RemoteFileEndpoint(String uri, RemoteFileComponent<T> component, RemoteFileConfiguration configuration) {
+    protected RemoteFileEndpoint(String uri, RemoteFileComponent<T> component, RemoteFileConfiguration configuration) {
         super(uri, component);
         this.configuration = configuration;
         // ftp must be synchronous as the ftp-client is not thread-safe