File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1717import picocli .CommandLine .Command ;
1818import picocli .CommandLine .Option ;
1919
20+ import java .io .File ;
2021import java .io .IOException ;
2122import java .io .UncheckedIOException ;
2223import java .nio .file .FileSystems ;
2324import java .nio .file .Files ;
2425import java .nio .file .Path ;
26+ import java .util .Arrays ;
2527import java .util .List ;
2628import java .util .Collections ;
2729
@@ -175,7 +177,7 @@ private List<BadImage> readTestOutputFile() throws IOException {
175177 .getPath (OUTPUT_PATH );
176178 if (Files .exists (filePath )) {
177179 try {
178- return new ObjectMapper ().readValue (Files . lines ( filePath ), BadImage [].class );
180+ return Arrays . asList ( new ObjectMapper ().readValue (filePath . toFile ( ), BadImage [].class ) );
179181 } catch (JsonProcessingException e ) {
180182 throw new RuntimeException (e );
181183 }
You can’t perform that action at this time.
0 commit comments