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/01/05 09:57:23 UTC

[camel] 04/05: (chores) camel-ftp: commented actually used exceptions

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 19cfba18cb96e1fd05a334d88f091e00b03231f6
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Jan 5 09:51:41 2023 +0100

    (chores) camel-ftp: commented actually used exceptions
---
 .../java/org/apache/camel/component/file/remote/FtpEndpoint.java     | 5 +++++
 .../java/org/apache/camel/component/file/remote/FtpsEndpoint.java    | 3 ---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpEndpoint.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpEndpoint.java
index 0220456e0c2..5ea68086118 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpEndpoint.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpEndpoint.java
@@ -222,6 +222,11 @@ public class FtpEndpoint<T extends FTPFile> extends RemoteFileEndpoint<FTPFile>
         return operations;
     }
 
+    /**
+     * Create the FTP client
+     *
+     * @throws Exception may throw client-specific exceptions if the client cannot be created
+     */
     protected FTPClient createFtpClient() throws Exception {
         FTPClient client = new FTPClient();
         // use parser factory that can load classes via Camel to work in all runtimes
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpsEndpoint.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpsEndpoint.java
index 801051e2f0d..736e3587ada 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpsEndpoint.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpsEndpoint.java
@@ -85,9 +85,6 @@ public class FtpsEndpoint extends FtpEndpoint<FTPFile> {
         return getFtpsConfiguration().getProtocol();
     }
 
-    /**
-     * Create the FTPS client.
-     */
     @Override
     protected FTPClient createFtpClient() throws Exception {
         FTPSClient client;