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/9a000e8b Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9a000e8b Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9a000e8b Branch: refs/heads/camel-2.16.x Commit: 9a000e8b7e0e48e5979bce39a589cf8500267035 Parents: 7b35019 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:40:16 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/9a000e8b/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) {