RESOLVED - BATCH-901: Uncreachable code in SkipLimitFactoryBean (setting BackOffPolicy)

removed mysterious retryPolicy null check
This commit is contained in:
robokaso
2008-11-03 18:17:30 +00:00
parent fdb7e19787
commit 9fc803e6bd

View File

@@ -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);
}