Skip to content

Commit

Permalink
HashMap -> Map in member
Browse files Browse the repository at this point in the history
  • Loading branch information
artoonie committed Jan 14, 2025
1 parent cd8fef5 commit 97653bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/network/brightspots/rcv/DominionCvrReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class DominionCvrReader extends BaseCvrReader {
private Map<Integer, String> precinctPortions;
// map of contest ID to Contest data
private Map<String, Contest> contests;
private HashMap<String, Candidate> candidateCodesToCandidates;
private Map<String, Candidate> candidateCodesToCandidates;

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

// returns a map of Codes to Candidate objects parsed from CandidateManifest.json
private HashMap<String, Candidate> getCandidates(String candidatePath) {
HashMap<String, Candidate> candidateCodesToCandidates = new HashMap<>();
private Map<String, Candidate> getCandidates(String candidatePath) {
Map<String, Candidate> candidateCodesToCandidates = new HashMap<>();
try {
HashMap json = JsonParser.readFromFile(candidatePath, HashMap.class);
ArrayList candidateList = (ArrayList) json.get("List");
Expand Down

0 comments on commit 97653bd

Please sign in to comment.