Skip to content

Commit c06b5ab

Browse files
author
Fabien Zoccola
committed
rework(RepertoireCommune): removed dead code
1 parent 42cfaaa commit c06b5ab

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package fr.france;
22

33
import java.io.FileNotFoundException;
4-
import java.io.FileReader;
54
import java.io.InputStream;
65
import java.io.InputStreamReader;
76
import java.io.Reader;
@@ -68,8 +67,6 @@ private static List<Commune> initCommunes() {
6867
Map<String, List<Commune>> noms = new HashMap<>();
6968
Map<String, Commune> nomEtCodePostal = new HashMap<>();
7069
for (Commune Commune : COMMUNES) {
71-
if (Commune.getNom() == null)
72-
continue;
7370
nomEtCodePostal.put(OutilsString.formater(Commune.getNom()) + Commune.getCodePostal(), Commune);
7471
List<Commune> villesNom = noms.computeIfAbsent(OutilsString.formater(Commune.getNom()),
7572
k -> new ArrayList<>());

src/test/java/fr/france/RepertoireCommuneTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
package fr.france;
22

3-
import static org.junit.jupiter.api.Assertions.assertEquals;
4-
import static org.junit.jupiter.api.Assertions.assertNotEquals;
5-
import static org.junit.jupiter.api.Assertions.assertNotNull;
6-
73
import java.util.Collections;
84
import java.util.List;
95

106
import org.junit.jupiter.api.Test;
117

8+
import static org.junit.jupiter.api.Assertions.*;
9+
1210
class RepertoireCommuneTest {
1311

1412
@Test

0 commit comments

Comments
 (0)