Resolved some TODOs.

This commit is contained in:
dsyer
2008-01-28 16:47:08 +00:00
parent f092cb8a99
commit 8c1210f5da
4 changed files with 2 additions and 10 deletions

View File

@@ -205,14 +205,10 @@ public class ItemReaderRetryPolicy extends AbstractStatefulRetryPolicy {
boolean success = recoverer.recover(item, context
.getLastThrowable());
if (!success) {
// TODO if context was null, there would be exception while
// getting success value
String count = context != null ? ""
+ context.getRetryCount() : "unknown";
int count = context.getRetryCount();
logger.error(
"Could not recover from error after retry exhausted after ["
+ count + "] attempts.", context
.getLastThrowable());
+ count + "] attempts.", context.getLastThrowable());
}
}
return item;