File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 22
33import java .io .FileNotFoundException ;
44import java .io .FileReader ;
5+ import java .io .InputStream ;
6+ import java .io .InputStreamReader ;
7+ import java .io .Reader ;
58import java .util .ArrayList ;
69import java .util .Collections ;
710import java .util .HashMap ;
1013
1114import com .opencsv .bean .CsvToBeanBuilder ;
1215
16+ import org .apache .commons .logging .Log ;
17+ import org .apache .commons .logging .LogFactory ;
18+
1319import fr .france .outils .OutilsString ;
1420
1521/**
3137 */
3238public class RepertoireCommune {
3339
40+ private static final Log log = LogFactory .getLog (RepertoireCommune .class );
41+
3442 private RepertoireCommune () {
3543 throw new IllegalStateException ("Class utilitaire" );
3644 }
@@ -43,7 +51,7 @@ private static List<Commune> initCommunes() {
4351 result = new CsvToBeanBuilder <Commune >(new FileReader ("communes.csv" )).withType (Commune .class ).build ()
4452 .parse ();
4553 } catch (IllegalStateException | FileNotFoundException e ) {
46- System . err . println ("Le fichier contenant les communes n'a pas été trouvé" );
54+ log . error ("Le fichier contenant les communes n'a pas été trouvé" , e );
4755 }
4856 return result ;
4957 }
You can’t perform that action at this time.
0 commit comments