diff --git a/dotCMS/src/main/java/com/dotcms/jobs/business/api/JobQueueManagerAPIImpl.java b/dotCMS/src/main/java/com/dotcms/jobs/business/api/JobQueueManagerAPIImpl.java index 4518d25ac972..0d88f4053127 100644 --- a/dotCMS/src/main/java/com/dotcms/jobs/business/api/JobQueueManagerAPIImpl.java +++ b/dotCMS/src/main/java/com/dotcms/jobs/business/api/JobQueueManagerAPIImpl.java @@ -361,7 +361,8 @@ public JobPaginatedResult getCompletedJobs(int page, int pageSize) throws DotDat @CloseDBIfOpened @Override - public JobPaginatedResult getSuccessfulJobs(int page, int pageSize) throws DotDataException { + public JobPaginatedResult getSuccessfulJobs(final int page, final int pageSize) + throws DotDataException { try { return jobQueue.getSuccessfulJobs(page, pageSize); } catch (JobQueueDataException e) { diff --git a/dotCMS/src/main/java/com/dotcms/jobs/business/api/events/RealTimeJobMonitor.java b/dotCMS/src/main/java/com/dotcms/jobs/business/api/events/RealTimeJobMonitor.java index e07d1b4fbcb3..065b6e361060 100644 --- a/dotCMS/src/main/java/com/dotcms/jobs/business/api/events/RealTimeJobMonitor.java +++ b/dotCMS/src/main/java/com/dotcms/jobs/business/api/events/RealTimeJobMonitor.java @@ -428,10 +428,9 @@ public static Predicate hasFailed() { } /** - * Creates a predicate that matches successful jobs. The predicate matches any job in the - * SUCCESS state. + * Creates a predicate that matches any completed job. * - * @return A predicate for matching successful jobs + * @return A predicate for matching completed jobs */ public static Predicate isCompleted() { return job -> (job.state() == JobState.SUCCESS