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:
committed by
Michael Minella
parent
8008ecca11
commit
f1cbb9daee
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 = "";
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user