File tree 2 files changed +5
-9
lines changed
spring-context-support/src/main/java/org/springframework/scheduling/quartz
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ public void setJobClass(Class jobClass) {
82
82
* to adapt the given job class to the Quartz Job interface.
83
83
*/
84
84
@ Override
85
- public Class <?> getJobClass () {
85
+ public Class getJobClass () {
86
86
return (this .actualJobClass != null ? this .actualJobClass : super .getJobClass ());
87
87
}
88
88
@@ -97,7 +97,7 @@ public Class<?> getJobClass() {
97
97
* (for example Spring-managed beans)
98
98
* @see SchedulerFactoryBean#setSchedulerContextAsMap
99
99
*/
100
- public void setJobDataAsMap (Map jobDataAsMap ) {
100
+ public void setJobDataAsMap (Map < String , ?> jobDataAsMap ) {
101
101
getJobDataMap ().putAll (jobDataAsMap );
102
102
}
103
103
Original file line number Diff line number Diff line change @@ -449,10 +449,8 @@ public void afterPropertiesSet() throws Exception {
449
449
this .resourceLoader = this .applicationContext ;
450
450
}
451
451
452
- // Create SchedulerFactory instance.
453
- SchedulerFactory schedulerFactory = (SchedulerFactory )
454
- BeanUtils .instantiateClass (this .schedulerFactoryClass );
455
-
452
+ // Create SchedulerFactory instance...
453
+ SchedulerFactory schedulerFactory = BeanUtils .instantiateClass (this .schedulerFactoryClass );
456
454
initSchedulerFactory (schedulerFactory );
457
455
458
456
if (this .resourceLoader != null ) {
@@ -515,9 +513,7 @@ public void afterPropertiesSet() throws Exception {
515
513
* Load and/or apply Quartz properties to the given SchedulerFactory.
516
514
* @param schedulerFactory the SchedulerFactory to initialize
517
515
*/
518
- private void initSchedulerFactory (SchedulerFactory schedulerFactory )
519
- throws SchedulerException , IOException {
520
-
516
+ private void initSchedulerFactory (SchedulerFactory schedulerFactory ) throws SchedulerException , IOException {
521
517
if (!(schedulerFactory instanceof StdSchedulerFactory )) {
522
518
if (this .configLocation != null || this .quartzProperties != null ||
523
519
this .taskExecutor != null || this .dataSource != null ) {
You can’t perform that action at this time.
0 commit comments