Clean up warnings
This commit is contained in:
@@ -107,7 +107,7 @@ class KeyGeneratorAdapter implements KeyGenerator {
|
||||
Object value = param.getValue();
|
||||
if (param.getParameterPosition() == context.getAllParameters().length - 1 &&
|
||||
context.getMethod().isVarArgs()) {
|
||||
parameters.addAll((List<Object>) CollectionUtils.arrayToList(value));
|
||||
parameters.addAll(CollectionUtils.arrayToList(value));
|
||||
}
|
||||
else {
|
||||
parameters.add(value);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -21,6 +21,7 @@ import java.lang.reflect.InvocationTargetException;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.quartz.DisallowConcurrentExecution;
|
||||
import org.quartz.Job;
|
||||
import org.quartz.JobDetail;
|
||||
import org.quartz.JobExecutionContext;
|
||||
import org.quartz.JobExecutionException;
|
||||
@@ -164,7 +165,6 @@ public class MethodInvokingJobDetailFactoryBean extends ArgumentConvertingMethod
|
||||
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void afterPropertiesSet() throws ClassNotFoundException, NoSuchMethodException {
|
||||
prepare();
|
||||
|
||||
@@ -172,13 +172,13 @@ public class MethodInvokingJobDetailFactoryBean extends ArgumentConvertingMethod
|
||||
String name = (this.name != null ? this.name : this.beanName);
|
||||
|
||||
// Consider the concurrent flag to choose between stateful and stateless job.
|
||||
Class<?> jobClass = (this.concurrent ? MethodInvokingJob.class : StatefulMethodInvokingJob.class);
|
||||
Class<? extends Job> jobClass = (this.concurrent ? MethodInvokingJob.class : StatefulMethodInvokingJob.class);
|
||||
|
||||
// Build JobDetail instance.
|
||||
JobDetailImpl jdi = new JobDetailImpl();
|
||||
jdi.setName(name != null ? name : toString());
|
||||
jdi.setGroup(this.group);
|
||||
jdi.setJobClass((Class) jobClass);
|
||||
jdi.setJobClass(jobClass);
|
||||
jdi.setDurability(true);
|
||||
jdi.getJobDataMap().put("methodInvoker", this);
|
||||
this.jobDetail = jdi;
|
||||
|
||||
Reference in New Issue
Block a user