Skip to content

Commit

Permalink
#29498 Rename ImportContentletProcessor to ImportContentletsProcessor
Browse files Browse the repository at this point in the history
This change updates the class name to reflect its purpose more accurately. The queue and log references have also been updated to ensure consistency throughout the codebase.
  • Loading branch information
jgambarios committed Oct 23, 2024
1 parent 0183221 commit e999e20
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@
* @see Queue
* @see ExponentialBackoffRetryPolicy
*/
@Queue("importContentlet")
@Queue("importContentlets")
@ExponentialBackoffRetryPolicy(
maxRetries = 0
)
public class ImportContentletProcessor implements JobProcessor, Cancellable {
public class ImportContentletsProcessor implements JobProcessor, Cancellable {

private static final String PARAMETER_LANGUAGE = "language";
private static final String PARAMETER_FIELDS = "fields";
Expand Down Expand Up @@ -262,7 +262,7 @@ private void handlePublish(final Job job, long language, final File fileToImport
final Charset charset, final User user, final LongConsumer progressCallback) {

AdminLogger.log(
ImportContentletProcessor.class, "process",
ImportContentletsProcessor.class, "process",
"Importing Contentlets", user
);

Expand Down Expand Up @@ -561,7 +561,7 @@ public static long jobIdToLong(final String jobId) {
*/
private Long totalLines(final Job job, final File dotTempFile) {

long totalCount = 0;
long totalCount;
try (BufferedReader reader = new BufferedReader(new FileReader(dotTempFile))) {
totalCount = reader.lines().count();
if (totalCount == 0) {
Expand Down

0 comments on commit e999e20

Please sign in to comment.