Updated for various code warnings

This commit addresses a number of deprications and other code warnings.
There are still many more to address, but this is a start.
This commit is contained in:
Michael Minella
2017-04-21 16:20:46 -05:00
parent a2a856e64b
commit 263e978a1f
128 changed files with 658 additions and 680 deletions

View File

@@ -126,7 +126,6 @@ public abstract class AbstractJobTests implements ApplicationContextAware {
* Launch the entire job, including all steps.
*
* @return JobExecution, so that the test can validate the exit status
* @throws Exception
*/
protected JobExecution launchJob() throws Exception {
return this.launchJob(this.getUniqueJobParameters());
@@ -135,9 +134,8 @@ public abstract class AbstractJobTests implements ApplicationContextAware {
/**
* Launch the entire job, including all steps
*
* @param jobParameters
* @param jobParameters parameters for the job
* @return JobExecution, so that the test can validate the exit status
* @throws Exception
*/
protected JobExecution launchJob(JobParameters jobParameters) throws Exception {
return getJobLauncher().run(this.job, jobParameters);

View File

@@ -98,7 +98,7 @@ public class DataSourceInitializer implements InitializingBean, DisposableBean {
@Override
public void afterPropertiesSet() throws Exception {
Assert.notNull(dataSource);
Assert.notNull(dataSource, "A DataSource is required");
initialize();
}