Jean-Francois Leveque

Passage en locale French pour la sortie fichier

......@@ -12,6 +12,7 @@ import org.springframework.stereotype.Component;
import java.io.*;
import java.util.List;
import java.util.Locale;
import java.util.Properties;
import java.util.Set;
import java.util.stream.Collectors;
......@@ -61,7 +62,8 @@ public class PostprocessingRunner implements ApplicationRunner {
try {
CSVPrinter csvPrinter = new CSVPrinter(new FileWriter(new File(dataDir, coverageFilename)),
CSVFormat.TDF.withHeader("c1 (item)", "c2 (item-user)", "c3 (item#)"));
csvPrinter.printRecord(coverage.getC1(), coverage.getC2(), coverage.getC3());
csvPrinter.printRecord(String.format(Locale.FRENCH, "%.3f", coverage.getC1()),
String.format(Locale.FRENCH, "%.3f", coverage.getC2()), coverage.getC3());
csvPrinter.close();
} catch (IOException e) {
throw new PostprocessingException("Can't write coverage file " + dataDir + coverageFilename, e);
......