Skip to content

Commit

Permalink
Avoid jdk8 incompatible code in CodeStyleTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Crydust authored and rbri committed Jul 31, 2024
1 parent 894dafa commit e1b3ed2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/org/htmlunit/CodeStyleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.lang.reflect.Modifier;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Calendar;
Expand Down Expand Up @@ -69,7 +70,7 @@ public void after() throws IOException {
}

if (System.getenv("EXPORT_FAILURES") != null) {
Files.write(Path.of("target", title_ + ".txt"), failures_);
Files.write(Paths.get("target", title_ + ".txt"), failures_);
}

final int errorsNumber = failures_.size();
Expand Down

0 comments on commit e1b3ed2

Please sign in to comment.