findbugs fixes

This commit is contained in:
robokaso
2008-11-24 11:55:49 +00:00
parent 44a971096e
commit 55043b4707
6 changed files with 7 additions and 8 deletions

View File

@@ -146,7 +146,7 @@ public class SimpleChunkOrientedTaskletTests {
* @author Dave Syer
*
*/
private final class StubItemWriter implements ItemWriter<String> {
private static final class StubItemWriter implements ItemWriter<String> {
private String values = "";
public void write(List<? extends String> items) throws Exception {

View File

@@ -671,7 +671,7 @@ public class TaskletStepTests {
String msg = stepExecution.getExitStatus().getExitDescription();
assertEquals("", msg);
Throwable ex = stepExecution.getFailureExceptions().get(0);
msg = ex.getMessage();
// The original rollback was caused by this one:
assertEquals("Bar", ex.getMessage());
}
@@ -701,7 +701,6 @@ public class TaskletStepTests {
String msg = stepExecution.getExitStatus().getExitDescription();
assertEquals("", msg);
Throwable ex = stepExecution.getFailureExceptions().get(0);
msg = ex.getMessage();
// The original rollback was caused by this one:
assertEquals("Bar", ex.getMessage());
}