checkstyle fixes

This commit is contained in:
leif stawnyczy 2024-09-27 11:52:42 -04:00
parent f83663e43a
commit 5940839f96
3 changed files with 13 additions and 4 deletions

View File

@ -63,5 +63,14 @@
<module name="AbstractClassName">
<property name="format" value="^(Base|Abstract).+$"/>
</module>
<!-- for suppression of rules; to use, surround code to exclude with comments: -->
<!-- CHECKSTYLE.OFF RuleToDisable AND CHECKSTYLE.ON RuleToDisable -->
<module name="SuppressWithPlainTextCommentFilter">
<property name="offCommentFormat" value="CHECKSTYLE.OFF\: ([\w\|]+)" />
<property name="onCommentFormat" value="CHECKSTYLE.ON\: ([\w\|]+)" />
</module>
</module>
</module>

View File

@ -30,12 +30,12 @@ public class CheckPendingReindexWorkStep implements IJobStepWorker<ReindexJobPar
if (!results.getResourceToHasWorkToComplete().isEmpty()) {
if (myReindexJobService.anyResourceHasPendingReindexWork(results.getResourceToHasWorkToComplete())) {
/* CHECKSTYLE.OFF: RegexpSingleLine
/* CHECKSTYLE.OFF: HapiErrorCodeUniqueness
* This exception is never fed to users and is only part of our structure
* So there's no need to use an error code
*/
throw new RetryChunkLaterException(ReindexUtils.getRetryLaterDelay());
/* CHECKSTYLE.ON: RegexpSingleLine */
/* CHECKSTYLE.ON: HapiErrorCodeUniqueness */
}
}

View File

@ -53,12 +53,12 @@ public class ReindexStepV2 extends BaseReindexStep
resourceTypesToCheckFlag.put(id.getResourceType(), true);
});
if (myReindexJobService.anyResourceHasPendingReindexWork(resourceTypesToCheckFlag)) {
/* CHECKSTYLE.OFF: RegexpSingleLine
/* CHECKSTYLE.OFF: HapiErrorCodeUniqueness
* This exception is never fed to users and is only part of our structure
* So there's no need to use an error code
*/
throw new RetryChunkLaterException(ReindexUtils.getRetryLaterDelay());
/* CHECKSTYLE.ON: RegexpSingleLine */
/* CHECKSTYLE.ON: HapiErrorCodeUniqueness */
}
ReindexResults results = doReindex(