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/45475b35 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/45475b35 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/45475b35 Branch: refs/heads/master Commit: 45475b357c788f47cd4690439c77dff50ec9132d Parents: 4677897 Author: Andrea Cosentino <anco...@gmail.com> Authored: Fri Mar 4 11:37:30 2016 +0100 Committer: Andrea Cosentino <anco...@gmail.com> Committed: Fri Mar 4 11:37:30 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/45475b35/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) {