Skip to content

Commit 97653bd

Browse files
committed
HashMap -> Map in member
1 parent cd8fef5 commit 97653bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/network/brightspots/rcv/DominionCvrReader.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class DominionCvrReader extends BaseCvrReader {
5151
private Map<Integer, String> precinctPortions;
5252
// map of contest ID to Contest data
5353
private Map<String, Contest> contests;
54-
private HashMap<String, Candidate> candidateCodesToCandidates;
54+
private Map<String, Candidate> candidateCodesToCandidates;
5555

5656
DominionCvrReader(ContestConfig config, RawContestConfig.CvrSource source) {
5757
super(config, source);
@@ -101,8 +101,8 @@ private static Map<Integer, String> getPrecinctData(String precinctPath) {
101101
}
102102

103103
// returns a map of Codes to Candidate objects parsed from CandidateManifest.json
104-
private HashMap<String, Candidate> getCandidates(String candidatePath) {
105-
HashMap<String, Candidate> candidateCodesToCandidates = new HashMap<>();
104+
private Map<String, Candidate> getCandidates(String candidatePath) {
105+
Map<String, Candidate> candidateCodesToCandidates = new HashMap<>();
106106
try {
107107
HashMap json = JsonParser.readFromFile(candidatePath, HashMap.class);
108108
ArrayList candidateList = (ArrayList) json.get("List");

0 commit comments

Comments
 (0)