use more of StandardCharsets (#952)
* use more of StandardCharsets * scalafmt
This commit is contained in:
parent
485639ef82
commit
8c688dad2e
21 changed files with 68 additions and 46 deletions
|
|
@ -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] {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue