Skip to content

Commit

Permalink
#29498 Applying code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jgambarios committed Oct 29, 2024
1 parent 6dd17d7 commit d5e7f95
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ private Map<String, List<String>> generatePreview(final Job job, final User user
* regarding inconsistencies, errors, warnings and/or precautions to the user.
* @throws DotDataException An error occurred when importing the CSV file.
*/
private HashMap<String, List<String>> processFile(final Job job, final User user,
private Map<String, List<String>> processFile(final Job job, final User user,
final String[] csvHeaders, final CsvReader csvReader,
final int languageCodeHeaderColumn, final int countryCodeHeaderColumn,
final LongConsumer progressCallback) throws DotDataException {
Expand Down Expand Up @@ -465,8 +465,8 @@ public String[] getFields(final Job job) {
}

final var fields = job.parameters().get(PARAMETER_FIELDS);
if (fields instanceof ArrayList) {
return ((ArrayList<String>) fields).toArray(new String[0]);
if (fields instanceof List) {
return ((List<String>) fields).toArray(new String[0]);
}

return (String[]) fields;
Expand Down

0 comments on commit d5e7f95

Please sign in to comment.