BATCH-2411 Remove @SuppressWarnings("unchecked")

The source code contains various @SuppressWarnings("unchecked") that
are no longer unnecessary since the relevant APIs have been upgraded to
support Java 5 generics.

 - remove @SuppressWarnings("unchecked") where no longer unnecessary

Issue: BATCH-2411
This commit is contained in:
Philippe Marschall
2015-08-03 07:42:39 +02:00
committed by Michael Minella
parent 8008ecca11
commit f1cbb9daee
4 changed files with 1 additions and 4 deletions

View File

@@ -105,7 +105,6 @@ public class DataSourceInitializer implements InitializingBean, DisposableBean {
final JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
String[] scripts;
try {
@SuppressWarnings("unchecked")
String[] list = StringUtils.delimitedListToStringArray(stripComments(IOUtils.readLines(scriptResource
.getInputStream())), ";");
scripts = list;

View File

@@ -63,7 +63,6 @@ public class JobLauncherDetails extends QuartzJobBean {
}
@Override
@SuppressWarnings("unchecked")
protected void executeInternal(JobExecutionContext context) {
Map<String, Object> jobDataMap = context.getMergedJobDataMap();
String jobName = (String) jobDataMap.get(JOB_NAME);

View File

@@ -104,7 +104,7 @@ public class CompositeItemWriterSampleFunctionalTests {
}
private void checkOutputFile(String fileName) throws IOException {
@SuppressWarnings({ "unchecked", "resource" })
@SuppressWarnings("resource")
List<String> outputLines = IOUtils.readLines(new FileInputStream(fileName));
String output = "";

View File

@@ -122,7 +122,6 @@ public class DataSourceInitializer implements InitializingBean, DisposableBean {
transactionTemplate.execute(new TransactionCallback<Void>() {
@Override
@SuppressWarnings("unchecked")
public Void doInTransaction(TransactionStatus status) {
JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
String[] scripts;