Commit 63f2d6ab authored by Dave Syer's avatar Dave Syer

Remove compiler warnings related to Batch upgrade

parent 31736466
......@@ -101,7 +101,7 @@ public class BatchAutoConfiguration {
JobExplorerFactoryBean factory = new JobExplorerFactoryBean();
factory.setDataSource(dataSource);
factory.afterPropertiesSet();
return (JobExplorer) factory.getObject();
return factory.getObject();
}
@Bean
......
......@@ -253,7 +253,7 @@ public class BatchAutoConfigurationTests {
MapJobExplorerFactoryBean explorer = new MapJobExplorerFactoryBean(
this.factory);
explorer.afterPropertiesSet();
return (JobExplorer) explorer.getObject();
return explorer.getObject();
}
}
......
......@@ -179,8 +179,7 @@ public class JobLauncherCommandLineRunnerTests {
@Bean
public JobExplorer jobExplorer() throws Exception {
return (JobExplorer) new MapJobExplorerFactoryBean(this.jobRepositoryFactory)
.getObject();
return new MapJobExplorerFactoryBean(this.jobRepositoryFactory).getObject();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment