Skip to content

Commit

Permalink
attempt to fix windows encoding on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
treblereel committed Oct 3, 2023
1 parent dce069f commit af985c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin.version}</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit af985c0

Please sign in to comment.