Skip to content

Commit

Permalink
other
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-kan committed Aug 10, 2023
1 parent 4dcdd48 commit e0b0b41
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public List<CSVRecord> getRecordsList(String field, List<String> searchKeys){
List<CSVRecord> output = new ArrayList<>();
// Try with resource: create FileWriter, CSVParser object as resources - closes automatically
try (FileReader fileReader = new FileReader(csvFile);
CSVMapper csvMapper = new CSVMapper(csvFile.getPath());
DBMapper csvMapper = new DBMapper(csvFile.getPath());
CSVParser csvParser = new CSVParser(fileReader, CSVFormat.DEFAULT.withHeader().withNullString(""))) {
// first, generate map of from column with search keys to records
Map<String,CSVRecord> strRecordMap = csvMapper.getStringToRecordMap(field);
Expand Down

0 comments on commit e0b0b41

Please sign in to comment.