You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by fa...@apache.org on 2024/01/13 13:08:33 UTC
(incubator-pekko-connectors-samples) 01/01: use StandardCharsets
This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch standard-charsets
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-connectors-samples.git
commit c7bd0c2e32bcc043ba1cc759dad81903a23563c7
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Sat Jan 13 14:08:27 2024 +0100
use StandardCharsets
---
.../src/main/scala/playground/SftpServerEmbedded.scala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pekko-connectors-sample-rotate-logs-to-ftp/src/main/scala/playground/SftpServerEmbedded.scala b/pekko-connectors-sample-rotate-logs-to-ftp/src/main/scala/playground/SftpServerEmbedded.scala
index ce2dba9..4a6e93c 100644
--- a/pekko-connectors-sample-rotate-logs-to-ftp/src/main/scala/playground/SftpServerEmbedded.scala
+++ b/pekko-connectors-sample-rotate-logs-to-ftp/src/main/scala/playground/SftpServerEmbedded.scala
@@ -5,7 +5,7 @@
package playground
import java.io.File
-import java.nio.charset.Charset
+import java.nio.charset.StandardCharsets
import java.nio.file.{ FileSystem, Files, Path, Paths }
import java.security.PublicKey
import java.util
@@ -26,7 +26,7 @@ object SftpServerEmbedded {
val resourcePath = "./src/main/resources"
- val clientPrivateKeyPassphrase: Array[Byte] = "secret".getBytes(Charset.forName("UTF-8"))
+ val clientPrivateKeyPassphrase: Array[Byte] = "secret".getBytes(StandardCharsets.UTF_8)
var clientPrivateKeyFile: String = new File(s"$resourcePath/id_rsa").getAbsolutePath
val keyPairProviderFile: String = new File(s"$resourcePath/hostkey.pem").getAbsolutePath
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org