We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ca31fe commit 6b25cfcCopy full SHA for 6b25cfc
convex-core/src/main/java/convex/core/util/Utils.java
@@ -720,9 +720,7 @@ public static long toLong(Object v) {
720
*/
721
public static String readResourceAsString(String path) throws IOException {
722
try (InputStream inputStream = getResourceAsStream(path)) {
723
- try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream))) {
724
- return reader.lines().collect(Collectors.joining(System.lineSeparator()));
725
- }
+ return new String(inputStream.readAllBytes(), java.nio.charset.StandardCharsets.UTF_8);
726
}
727
728
0 commit comments