findbugs fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user