diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/SkipLimitStepFactoryBean.java b/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/SkipLimitStepFactoryBean.java index 22bf9b2ef..aa7a360f4 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/SkipLimitStepFactoryBean.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/SkipLimitStepFactoryBean.java @@ -262,7 +262,7 @@ public class SkipLimitStepFactoryBean extends SimpleStepFactoryBean { retryTemplate.setListeners(retryListeners); } retryTemplate.setRetryPolicy(recoveryCallbackRetryPolicy); - if (retryPolicy == null && backOffPolicy != null) { + if (backOffPolicy != null) { retryTemplate.setBackOffPolicy(backOffPolicy); }