IN PROGRESS - BATCH-601: Findbugs code audit
This commit is contained in:
@@ -319,7 +319,7 @@ public class FlatFileItemReaderBasicTests extends TestCase {
|
||||
return str.indexOf(searchStr) != -1;
|
||||
}
|
||||
|
||||
private class NonExistentResource extends AbstractResource {
|
||||
private static class NonExistentResource extends AbstractResource {
|
||||
|
||||
public NonExistentResource() {
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import org.springframework.core.io.Resource;
|
||||
|
||||
public class FlatFileItemReaderCommonTests extends CommonItemStreamItemReaderTests {
|
||||
|
||||
private final String FOOS = "1 \n 2 \n 3 \n 4 \n 5 \n";
|
||||
private static final String FOOS = "1 \n 2 \n 3 \n 4 \n 5 \n";
|
||||
|
||||
protected ItemReader getItemReader() throws Exception {
|
||||
FlatFileItemReader tested = new FlatFileItemReader();
|
||||
|
||||
@@ -54,16 +54,16 @@ public class ItemTransformerItemWriterFunctionalTests extends TestCase {
|
||||
itemTransformerItemWriter.write(new Foo());
|
||||
}
|
||||
|
||||
public class Foo {
|
||||
private static class Foo {
|
||||
|
||||
}
|
||||
|
||||
public class Bar {
|
||||
private static class Bar {
|
||||
public Bar(Foo foo) {
|
||||
}
|
||||
}
|
||||
|
||||
public class Foobar{
|
||||
private static class Foobar{
|
||||
public Foobar(Bar bar){}
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ public class ItemTransformerItemWriterFunctionalTests extends TestCase {
|
||||
}
|
||||
}
|
||||
|
||||
public class BarWriter implements ItemWriter{
|
||||
private static class BarWriter implements ItemWriter{
|
||||
|
||||
public void write(Object item) throws Exception {
|
||||
assertTrue(item instanceof Bar);
|
||||
@@ -99,7 +99,7 @@ public class ItemTransformerItemWriterFunctionalTests extends TestCase {
|
||||
|
||||
}
|
||||
|
||||
public class FoobarWriter implements ItemWriter{
|
||||
private static class FoobarWriter implements ItemWriter{
|
||||
|
||||
public void write(Object item) throws Exception {
|
||||
assertTrue(item instanceof Foobar);
|
||||
|
||||
@@ -222,7 +222,7 @@ public class StaxEventItemReaderTests extends TestCase {
|
||||
newSource.setOpenCalled(false);
|
||||
// calling read again should require re-initialization because of close
|
||||
try {
|
||||
item = newSource.read();
|
||||
newSource.read();
|
||||
fail("Expected ReaderNotOpenException");
|
||||
} catch (ReaderNotOpenException e) {
|
||||
// expected
|
||||
|
||||
@@ -29,8 +29,6 @@ import org.springframework.batch.retry.support.RetryTemplate;
|
||||
*/
|
||||
public class RetrySynchronizationManagerTests extends TestCase {
|
||||
|
||||
int count = 0;
|
||||
|
||||
RetryTemplate template = new RetryTemplate();
|
||||
|
||||
protected void setUp() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user