This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-net.git
The following commit(s) were added to refs/heads/master by this push: new e1ebd73 Checkstyle e1ebd73 is described below commit e1ebd7390afa36e008e4267afc11f223f866451e Author: Sebb <s...@apache.org> AuthorDate: Mon Jun 22 23:06:31 2020 +0100 Checkstyle --- src/main/java/org/apache/commons/net/ftp/FTPClient.java | 2 +- src/main/java/org/apache/commons/net/ftp/FTPSClient.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/net/ftp/FTPClient.java b/src/main/java/org/apache/commons/net/ftp/FTPClient.java index 5bb6f31..8b1379f 100644 --- a/src/main/java/org/apache/commons/net/ftp/FTPClient.java +++ b/src/main/java/org/apache/commons/net/ftp/FTPClient.java @@ -3474,7 +3474,7 @@ implements Configurable /** * Initiate list parsing for MLSD listings in the current working directory. - * + * * @return the engine * @throws IOException on error */ diff --git a/src/main/java/org/apache/commons/net/ftp/FTPSClient.java b/src/main/java/org/apache/commons/net/ftp/FTPSClient.java index a841edc..02cf59a 100644 --- a/src/main/java/org/apache/commons/net/ftp/FTPSClient.java +++ b/src/main/java/org/apache/commons/net/ftp/FTPSClient.java @@ -290,7 +290,8 @@ public class FTPSClient extends FTPClient { socket.getOutputStream(), getControlEncoding())); if (isClientMode) { - if (hostnameVerifier != null && !hostnameVerifier.verify(socket.getInetAddress().getHostAddress(), socket.getSession())) { + if (hostnameVerifier != null && + !hostnameVerifier.verify(socket.getInetAddress().getHostAddress(), socket.getSession())) { throw new SSLHandshakeException("Hostname doesn't match certificate"); } }