checkstyle fixes
This commit is contained in:
parent
f83663e43a
commit
5940839f96
|
@ -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>
|
||||
|
|
|
@ -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 */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue