use more of StandardCharsets (#952)

* use more of StandardCharsets

* scalafmt
This commit is contained in:
PJ Fanning 2024-01-14 23:50:50 +01:00 committed by GitHub
parent 485639ef82
commit 8c688dad2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 68 additions and 46 deletions

View file

@ -14,6 +14,7 @@
package org.apache.pekko.event.slf4j
import java.io.ByteArrayOutputStream
import java.nio.charset.StandardCharsets
import scala.concurrent.duration._
@ -71,7 +72,7 @@ object Slf4jLoggerSpec {
class MyLogSource
val output = new ByteArrayOutputStream
def outputString: String = output.toString("UTF-8")
def outputString: String = output.toString(StandardCharsets.UTF_8.name)
class TestAppender[E] extends OutputStreamAppender[E] {