camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [2/2] camel git commit: Fixed CS and adjusted comment in camel-ftp FTPOperations
Date Fri, 04 Mar 2016 10:43:21 GMT
Fixed CS and adjusted comment in camel-ftp FTPOperations


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/0dd343e9
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/0dd343e9
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/0dd343e9

Branch: refs/heads/camel-2.15.x
Commit: 0dd343e9afb397de03ede194aece69cbbea1a287
Parents: 4dc578c
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Fri Mar 4 11:37:30 2016 +0100
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Fri Mar 4 11:42:07 2016 +0100

----------------------------------------------------------------------
 .../apache/camel/component/file/remote/FtpOperations.java   | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/0dd343e9/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
index 8621046..cfc72f7 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
@@ -175,13 +175,12 @@ public class FtpOperations implements RemoteFileOperations<FTPFile>
{
             }
             log.trace("User {} logged in: {}", username != null ? username : "anonymous",
login);
             if (!login) {
-                // store replyString, because disconnect() will reset ist
-                String replyString = client.getReplyString();
-                int replyCode = client.getReplyCode();
-
+                // store replyString, because disconnect() will reset it
+                String replyString = client.getReplyString();
+                int replyCode = client.getReplyCode();
                 // disconnect to prevent connection leaks
                 client.disconnect();
-                throw new GenericFileOperationFailedException(replyCode, replyString);
+                throw new GenericFileOperationFailedException(replyCode, replyString);
             }
             client.setFileType(configuration.isBinary() ? FTP.BINARY_FILE_TYPE : FTP.ASCII_FILE_TYPE);
         } catch (IOException e) {


Mime
View raw message