From af985c052964c23d6f5b0225dca34b186bc7348d Mon Sep 17 00:00:00 2001 From: Dmitrii Tikhomirov Date: Mon, 2 Oct 2023 19:57:05 -0700 Subject: [PATCH] attempt to fix windows encoding on github actions --- tests/resources/pom.xml | 4 ++-- .../treblereel/j2cl/processors/test/TextResourcesTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/resources/pom.xml b/tests/resources/pom.xml index 094becd..e81d9fa 100644 --- a/tests/resources/pom.xml +++ b/tests/resources/pom.xml @@ -52,8 +52,8 @@ maven-compiler-plugin ${maven.compiler.plugin.version} - ${maven.compiler.source} - ${maven.compiler.target} + 11 + 11 diff --git a/tests/resources/src/test/java/org/treblereel/j2cl/processors/test/TextResourcesTest.java b/tests/resources/src/test/java/org/treblereel/j2cl/processors/test/TextResourcesTest.java index a3c046f..92f1a7d 100644 --- a/tests/resources/src/test/java/org/treblereel/j2cl/processors/test/TextResourcesTest.java +++ b/tests/resources/src/test/java/org/treblereel/j2cl/processors/test/TextResourcesTest.java @@ -60,7 +60,7 @@ public void testNoSource() { private String readFileAsString(String fileName) { try { Path file = Paths.get(this.getClass().getResource(fileName).toURI()); - return new String(Files.readAllBytes(file)); + return Files.readString(file); } catch (IOException e) { throw new RuntimeException(e); } catch (URISyntaxException e) {