From 3cc6cd558fa548219f4e12b3abbb6b88d0d20c23 Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Fri, 24 Feb 2023 16:02:31 +0100 Subject: [PATCH] JAL-4135 replace stream.toString(Charset) calls with stream.toString(String) The former variant was introduced in java 10 and is not implemented in java2script. --- src/jalview/ws2/client/slivka/SlivkaWSClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jalview/ws2/client/slivka/SlivkaWSClient.java b/src/jalview/ws2/client/slivka/SlivkaWSClient.java index 47e43c1..3b81ba9 100644 --- a/src/jalview/ws2/client/slivka/SlivkaWSClient.java +++ b/src/jalview/ws2/client/slivka/SlivkaWSClient.java @@ -175,7 +175,7 @@ public class SlivkaWSClient implements WebServiceClientI { ByteArrayOutputStream stream = new ByteArrayOutputStream(); f.writeTo(stream); - return stream.toString(StandardCharsets.UTF_8); + return stream.toString("UTF-8"); } } return ""; @@ -191,7 +191,7 @@ public class SlivkaWSClient implements WebServiceClientI { ByteArrayOutputStream stream = new ByteArrayOutputStream(); f.writeTo(stream); - return stream.toString(StandardCharsets.UTF_8); + return stream.toString("UTF-8"); } } return ""; -- 1.7.10.2