File tree 1 file changed +2
-2
lines changed
spring-context-support/src/main/java/org/springframework/scheduling/quartz
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 52
52
* <p>For concrete usage, check out the {@link SchedulerFactoryBean} and
53
53
* {@link SchedulerAccessorBean} classes.
54
54
*
55
- * <p>Compatible with Quartz 1.8 as well as Quartz 2.0/2.1 , as of Spring 4.0.
55
+ * <p>Compatible with Quartz 1.8 as well as Quartz 2.0-2.2 , as of Spring 4.0.
56
56
*
57
57
* @author Juergen Hoeller
58
58
* @since 2.5.6
@@ -383,7 +383,7 @@ private JobDetail findJobDetail(Trigger trigger) {
383
383
else {
384
384
try {
385
385
Map jobDataMap = (Map ) ReflectionUtils .invokeMethod (Trigger .class .getMethod ("getJobDataMap" ), trigger );
386
- return (JobDetail ) jobDataMap .get (JobDetailAwareTrigger .JOB_DETAIL_KEY );
386
+ return (JobDetail ) jobDataMap .remove (JobDetailAwareTrigger .JOB_DETAIL_KEY );
387
387
}
388
388
catch (NoSuchMethodException ex ) {
389
389
throw new IllegalStateException ("Inconsistent Quartz API: " + ex );
You can’t perform that action at this time.
0 commit comments