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

@@ -55,7 +55,7 @@ public class JobListenerAnnotationBeanPostProcessor implements BeanPostProcessor
return null;
}
private class BeforeJobProxy extends JobExecutionListenerSupport{
private static class BeforeJobProxy extends JobExecutionListenerSupport{
Method method;
Object bean;
@@ -83,7 +83,7 @@ public class JobListenerAnnotationBeanPostProcessor implements BeanPostProcessor
}
}
private class AfterJobProxy extends JobExecutionListenerSupport{
private static class AfterJobProxy extends JobExecutionListenerSupport{
Method method;
Object bean;

View File

@@ -129,7 +129,7 @@ public class StepListenerFactoryBean implements FactoryBean, InitializingBean{
* Extension of HashSet that ignores nulls, rather than putting them into
* the set.
*/
private class NullIgnoringSet<E> extends HashSet<E>{
private static class NullIgnoringSet<E> extends HashSet<E>{
@Override
public boolean add(E e) {

View File

@@ -266,7 +266,7 @@ public class JdbcJobExecutionDao extends AbstractJdbcBatchMetadataDao implements
* @author Dave Syer
*
*/
private class JobExecutionRowMapper implements ParameterizedRowMapper<JobExecution> {
private static class JobExecutionRowMapper implements ParameterizedRowMapper<JobExecution> {
private JobInstance jobInstance;

View File

@@ -210,7 +210,7 @@ public class JdbcStepExecutionDao extends AbstractJdbcBatchMetadataDao implement
return executions;
}
private class StepExecutionRowMapper implements ParameterizedRowMapper<StepExecution> {
private static class StepExecutionRowMapper implements ParameterizedRowMapper<StepExecution> {
private final JobExecution jobExecution;

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