This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
commit 29fe31a35c5c323d1388bda915171648910cec80 Author: Gary Gregory <[email protected]> AuthorDate: Sat Mar 20 19:17:04 2021 -0400 Format. --- .../apache/commons/vfs2/provider/sftp/SftpFileSystem.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystem.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystem.java index 7b366b2..2c6778b 100644 --- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystem.java +++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystem.java @@ -89,11 +89,10 @@ public class SftpFileSystem extends AbstractFileSystem { private final boolean execDisabled; protected SftpFileSystem(final GenericFileName rootName, final Session session, - final FileSystemOptions fileSystemOptions) { + final FileSystemOptions fileSystemOptions) { super(rootName, null, fileSystemOptions); this.session = Objects.requireNonNull(session, "session"); - this.connectTimeout = SftpFileSystemConfigBuilder.getInstance() - .getConnectTimeout(fileSystemOptions); + this.connectTimeout = SftpFileSystemConfigBuilder.getInstance().getConnectTimeout(fileSystemOptions); if (SftpFileSystemConfigBuilder.getInstance().isDisableDetectExecChannel(fileSystemOptions)) { this.execDisabled = true; @@ -142,20 +141,20 @@ public class SftpFileSystem extends AbstractFileSystem { channel = (ChannelSftp) getSession().openChannel("sftp"); channel.connect(DurationUtils.toMillisInt(connectTimeout)); final Boolean userDirIsRoot = SftpFileSystemConfigBuilder.getInstance() - .getUserDirIsRoot(getFileSystemOptions()); + .getUserDirIsRoot(getFileSystemOptions()); final String workingDirectory = getRootName().getPath(); if (workingDirectory != null && (userDirIsRoot == null || !userDirIsRoot.booleanValue())) { try { channel.cd(workingDirectory); } catch (final SftpException e) { throw new FileSystemException("vfs.provider.sftp/change-work-directory.error", workingDirectory, - e); + e); } } } final String fileNameEncoding = SftpFileSystemConfigBuilder.getInstance() - .getFileNameEncoding(getFileSystemOptions()); + .getFileNameEncoding(getFileSystemOptions()); if (fileNameEncoding != null) { try { @@ -181,7 +180,7 @@ public class SftpFileSystem extends AbstractFileSystem { if (!this.session.isConnected()) { doCloseCommunicationLink(); this.session = SftpFileProvider.createSession((GenericFileName) getRootName(), - getFileSystemOptions()); + getFileSystemOptions()); } } }
