BATCH-1915: Change minimum compiler level to 1.6 and use @Override everywhere
This commit is contained in:
@@ -134,6 +134,7 @@ public class JobRepositoryTestUtilsTests {
|
||||
public void testCreateJobExecutionsWithIncrementer() throws Exception {
|
||||
utils = new JobRepositoryTestUtils(jobRepository, dataSource);
|
||||
utils.setJobParametersIncrementer(new JobParametersIncrementer() {
|
||||
@Override
|
||||
public JobParameters getNext(JobParameters parameters) {
|
||||
return new JobParametersBuilder().addString("foo","bar").toJobParameters();
|
||||
}
|
||||
|
||||
@@ -53,6 +53,7 @@ public class SampleStepTests implements ApplicationContextAware {
|
||||
assertEquals(2, jdbcTemplate.queryForInt("SELECT ID from TESTS where NAME = 'SampleTasklet2'"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
|
||||
this.context = applicationContext;
|
||||
}
|
||||
|
||||
@@ -44,6 +44,7 @@ public class JobExecutionNotificationPublisher implements ApplicationListener, N
|
||||
*
|
||||
* @see org.springframework.jmx.export.notification.NotificationPublisherAware#setNotificationPublisher(org.springframework.jmx.export.notification.NotificationPublisher)
|
||||
*/
|
||||
@Override
|
||||
public void setNotificationPublisher(NotificationPublisher notificationPublisher) {
|
||||
this.notificationPublisher = notificationPublisher;
|
||||
}
|
||||
@@ -55,6 +56,7 @@ public class JobExecutionNotificationPublisher implements ApplicationListener, N
|
||||
*
|
||||
* @see ApplicationListener#onApplicationEvent(ApplicationEvent)
|
||||
*/
|
||||
@Override
|
||||
public void onApplicationEvent(ApplicationEvent applicationEvent) {
|
||||
if (applicationEvent instanceof SimpleMessageApplicationEvent) {
|
||||
String message = applicationEvent.toString();
|
||||
|
||||
@@ -19,8 +19,9 @@ public class SimpleMessageApplicationEvent extends ApplicationEvent {
|
||||
/* (non-Javadoc)
|
||||
* @see java.util.EventObject#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
return "message=["+message+"], " + super.toString();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ public class StepExecutionApplicationEventAdvice implements ApplicationEventPubl
|
||||
* (non-Javadoc)
|
||||
* @see org.springframework.context.ApplicationEventPublisherAware#setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher)
|
||||
*/
|
||||
@Override
|
||||
public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) {
|
||||
this.applicationEventPublisher = applicationEventPublisher;
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ public class LoggingTasklet implements Tasklet {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception {
|
||||
logger.info("tasklet executing: id=" + id);
|
||||
return RepeatStatus.FINISHED;
|
||||
|
||||
@@ -26,6 +26,7 @@ public class SampleTasklet implements Tasklet {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception {
|
||||
this.jdbcTemplate.update("insert into TESTS(ID, NAME) values (?, 'SampleTasklet" + id + "')", id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user