From d5e7f95f5cc407649964ffaeacb33ca6977773e5 Mon Sep 17 00:00:00 2001 From: Jonathan Gamba Date: Tue, 29 Oct 2024 12:42:02 -0600 Subject: [PATCH] #29498 Applying code review feedback --- .../business/processor/impl/ImportContentletsProcessor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dotCMS/src/main/java/com/dotcms/jobs/business/processor/impl/ImportContentletsProcessor.java b/dotCMS/src/main/java/com/dotcms/jobs/business/processor/impl/ImportContentletsProcessor.java index 637da09f9f62..eb4e4778acf2 100644 --- a/dotCMS/src/main/java/com/dotcms/jobs/business/processor/impl/ImportContentletsProcessor.java +++ b/dotCMS/src/main/java/com/dotcms/jobs/business/processor/impl/ImportContentletsProcessor.java @@ -338,7 +338,7 @@ private Map> 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> processFile(final Job job, final User user, + private Map> processFile(final Job job, final User user, final String[] csvHeaders, final CsvReader csvReader, final int languageCodeHeaderColumn, final int countryCodeHeaderColumn, final LongConsumer progressCallback) throws DotDataException { @@ -465,8 +465,8 @@ public String[] getFields(final Job job) { } final var fields = job.parameters().get(PARAMETER_FIELDS); - if (fields instanceof ArrayList) { - return ((ArrayList) fields).toArray(new String[0]); + if (fields instanceof List) { + return ((List) fields).toArray(new String[0]); } return (String[]) fields;