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
|
|
@ -180,7 +180,7 @@ class JacksonJsonSerializerSpec extends JacksonSerializerSpec("jackson-json") {
|
|||
|
||||
def serializeToJsonString(obj: AnyRef, sys: ActorSystem = system): String = {
|
||||
val blob = serializeToBinary(obj, sys)
|
||||
new String(blob, "utf-8")
|
||||
new String(blob, StandardCharsets.UTF_8)
|
||||
}
|
||||
|
||||
def deserializeFromJsonString(
|
||||
|
|
@ -188,7 +188,7 @@ class JacksonJsonSerializerSpec extends JacksonSerializerSpec("jackson-json") {
|
|||
serializerId: Int,
|
||||
manifest: String,
|
||||
sys: ActorSystem = system): AnyRef = {
|
||||
val blob = json.getBytes("utf-8")
|
||||
val blob = json.getBytes(StandardCharsets.UTF_8)
|
||||
deserializeFromBinary(blob, serializerId, manifest, sys)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue