Remove compiler warnings related to Batch upgrade

pull/727/merge
Dave Syer 11 years ago
parent 3173646635
commit 63f2d6ab15

@ -101,7 +101,7 @@ public class BatchAutoConfiguration {
JobExplorerFactoryBean factory = new JobExplorerFactoryBean(); JobExplorerFactoryBean factory = new JobExplorerFactoryBean();
factory.setDataSource(dataSource); factory.setDataSource(dataSource);
factory.afterPropertiesSet(); factory.afterPropertiesSet();
return (JobExplorer) factory.getObject(); return factory.getObject();
} }
@Bean @Bean

@ -253,7 +253,7 @@ public class BatchAutoConfigurationTests {
MapJobExplorerFactoryBean explorer = new MapJobExplorerFactoryBean( MapJobExplorerFactoryBean explorer = new MapJobExplorerFactoryBean(
this.factory); this.factory);
explorer.afterPropertiesSet(); explorer.afterPropertiesSet();
return (JobExplorer) explorer.getObject(); return explorer.getObject();
} }
} }

@ -179,8 +179,7 @@ public class JobLauncherCommandLineRunnerTests {
@Bean @Bean
public JobExplorer jobExplorer() throws Exception { public JobExplorer jobExplorer() throws Exception {
return (JobExplorer) new MapJobExplorerFactoryBean(this.jobRepositoryFactory) return new MapJobExplorerFactoryBean(this.jobRepositoryFactory).getObject();
.getObject();
} }
} }

Loading…
Cancel
Save