Skip to content

Commit 1fa8017

Browse files
author
Fabien Zoccola
committed
fix(security): fix security hotspot of printStackTrace in RepertoireCommune
1 parent e6668eb commit 1fa8017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/fr/france/RepertoireCommune.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private static List<Commune> initCommunes() {
4343
result = new CsvToBeanBuilder<Commune>(new FileReader("communes.csv")).withType(Commune.class).build()
4444
.parse();
4545
} catch (IllegalStateException | FileNotFoundException e) {
46-
e.printStackTrace();
46+
System.err.println("Le fichier contenant les communes n'a pas été trouvé");
4747
}
4848
return result;
4949
}

0 commit comments

Comments
 (0)