Skip to content

Commit 9b4b166

Browse files
committed
Fix maven-surefire-plugin issues
1 parent d9f26ef commit 9b4b166

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

coverage/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<plugin>
6666
<groupId>org.apache.maven.plugins</groupId>
6767
<artifactId>maven-surefire-plugin</artifactId>
68-
<version>3.5.2</version>
68+
<version>3.5.3</version>
6969
<configuration>
7070
<argLine>--add-exports java.base/sun.nio.ch=ALL-UNNAMED</argLine>
7171
</configuration>

coverage/src/main/java/fr/insee/vtl/coverage/utils/JSONStructureLoader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static Map<String, List<Structured.Component>> loadStructures(File jsonFi
2424
ObjectMapper mapper = new ObjectMapper();
2525
mapper.registerModule(new TrevasModule());
2626

27-
String json = new String(Files.readAllBytes(jsonFile.toPath()), StandardCharsets.UTF_8);
27+
String json = Files.readString(jsonFile.toPath());
2828
JsonNode root = mapper.readTree(json);
2929

3030
Map<String, List<Structured.Component>> structureMap = new HashMap<>();
@@ -64,7 +64,7 @@ public static Map<String, Dataset> loadDatasetsFromCSV(File dataStructureFile) t
6464
ObjectMapper mapper = new ObjectMapper();
6565
mapper.registerModule(new TrevasModule());
6666

67-
String json = new String(Files.readAllBytes(dataStructureFile.toPath()), StandardCharsets.UTF_8);
67+
String json = Files.readString(dataStructureFile.toPath());
6868
JsonNode root = mapper.readTree(json);
6969

7070
File parentDir = dataStructureFile.getParentFile();

vtl-prov/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<plugin>
6666
<groupId>org.apache.maven.plugins</groupId>
6767
<artifactId>maven-surefire-plugin</artifactId>
68-
<version>3.3.0</version>
68+
<version>3.5.3</version>
6969
<configuration>
7070
<argLine>--add-exports java.base/sun.nio.ch=ALL-UNNAMED</argLine>
7171
</configuration>

vtl-sdmx/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
<plugin>
7676
<groupId>org.apache.maven.plugins</groupId>
7777
<artifactId>maven-surefire-plugin</artifactId>
78-
<version>3.3.0</version>
78+
<version>3.5.3</version>
7979
<configuration>
8080
<argLine>--add-exports java.base/sun.nio.ch=ALL-UNNAMED</argLine>
8181
</configuration>

vtl-spark/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<plugin>
5555
<groupId>org.apache.maven.plugins</groupId>
5656
<artifactId>maven-surefire-plugin</artifactId>
57-
<version>3.3.0</version>
57+
<version>3.5.3</version>
5858
<configuration>
5959
<argLine>--add-exports java.base/sun.nio.ch=ALL-UNNAMED</argLine>
6060
</configuration>

0 commit comments

Comments
 (0)