You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by tw...@apache.org on 2021/11/20 11:49:54 UTC
[mina-sshd] branch master updated: Fix compile error
This is an automated email from the ASF dual-hosted git repository.
twolf pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mina-sshd.git
The following commit(s) were added to refs/heads/master by this push:
new 0fbecc2 Fix compile error
0fbecc2 is described below
commit 0fbecc2ee3b74d6234eadc145cf559f5ee1a7be2
Author: Thomas Wolf <tw...@apache.org>
AuthorDate: Sat Nov 20 12:49:07 2021 +0100
Fix compile error
Do not use Java 11 methods; the baseline for Apache MINA sshd is Java
1.8.
---
.../java/org/apache/sshd/sftp/client/extensions/SftpExtensionsTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sshd-sftp/src/test/java/org/apache/sshd/sftp/client/extensions/SftpExtensionsTest.java b/sshd-sftp/src/test/java/org/apache/sshd/sftp/client/extensions/SftpExtensionsTest.java
index dbdcdf8..22ac2b5 100644
--- a/sshd-sftp/src/test/java/org/apache/sshd/sftp/client/extensions/SftpExtensionsTest.java
+++ b/sshd-sftp/src/test/java/org/apache/sshd/sftp/client/extensions/SftpExtensionsTest.java
@@ -87,7 +87,7 @@ public class SftpExtensionsTest extends AbstractSftpClientTestSupport {
Path localFile = CommonTestSupportUtils.resolve(
targetPath, SftpConstants.SFTP_SUBSYSTEM_NAME, getClass().getSimpleName(), getCurrentTestName());
Files.createDirectories(localFile.getParent());
- Files.writeString(localFile, getClass().getName() + "#" + getCurrentTestName() + "@" + new Date(),
+ Files.write(localFile, Collections.singleton(getClass().getName() + "#" + getCurrentTestName() + "@" + new Date()),
StandardCharsets.UTF_8);
List<? extends SubsystemFactory> factories = sshd.getSubsystemFactories();