Buggy code:
public class AnnotationJobTriggerPlugin implements SchedulerPlugin { private final Logger logger = LoggerFactory . getLogger ( AnnotationJobTriggerPlugin . class ) ; private Scheduler scheduler ; private final String packageName ; private static final String SEPARATOR = ":" ; public AnnotationJobTriggerPlugin ( String packageName ) { } @ Override public void initialize ( String name , final Scheduler scheduler ) throws SchedulerException { } @ Override public void start ( ) { logger . info ( "Loading<seq2seq4repair_space>annotated<seq2seq4repair_space>jobs<seq2seq4repair_space>from<seq2seq4repair_space>{}." , packageName ) ; if ( ( packageName ) != null ) { Set < Class < ? extends Job > > scheduledClasses = scheduler . getCascadingClassLoadHelper ( ) . getJobClasses ( packageName ) ; for ( Class < ? extends Job > jobClass : scheduledClasses ) { CronTrigger cronTrigger = jobClass . getAnnotation ( CronTrigger . class ) ; if ( cronTrigger != null ) { JobDataMap jobDataMap = new JobDataMap ( ) ; if ( ( ( cronTrigger . jobDataMap ( ) ) != null ) && ( ( cronTrigger . jobDataMap ( ) . length ) > 0 ) ) { addToJobDataMap ( jobDataMap , cronTrigger . jobDataMap ( ) ) ; } JobDetail job = JobBuilder . newJobBuilder ( jobClass ) . withIdentity ( jobClass . getSimpleName ( ) ) . isConcurrencyAllowed ( cronTrigger . isConcurrencyAllowed ( ) ) . usingJobData ( jobDataMap ) . build ( ) ; OperableTrigger trigger ; try { trigger = buildCronTrigger ( cronTrigger , jobClass . getSimpleName ( ) ) ; scheduler . scheduleJob ( job , trigger ) ; logger . info ( "Scheduled<seq2seq4repair_space>job<seq2seq4repair_space>{}<seq2seq4repair_space>with<seq2seq4repair_space>trigger<seq2seq4repair_space>{}" , job , trigger ) ; } catch ( Exception e ) { logger . warn ( "ANNOTATED<seq2seq4repair_space>JOB<seq2seq4repair_space>+<seq2seq4repair_space>TRIGGER<seq2seq4repair_space>NOT<seq2seq4repair_space>ADDED!" , e ) ; } } SimpleTrigger simpleTrigger = jobClass . getAnnotation ( SimpleTrigger . class ) ; if ( simpleTrigger != null ) { JobDataMap jobDataMap = new JobDataMap ( ) ; if ( ( ( simpleTrigger . jobDataMap ( ) ) != null ) && ( ( simpleTrigger . jobDataMap ( ) . length ) > 0 ) ) { addToJobDataMap ( jobDataMap , simpleTrigger . jobDataMap ( ) ) ; } <START_BUG> JobDetail job = JobBuilder . newJobBuilder ( jobClass ) . withIdentity ( jobClass . getSimpleName ( ) ) . isConcurrencyAllowed ( cronTrigger . isConcurrencyAllowed ( ) ) . usingJobData ( jobDataMap ) . build ( ) ; <END_BUG> OperableTrigger trigger ; try { trigger = buildSimpleTrigger ( simpleTrigger , jobClass . getSimpleName ( ) ) ; scheduler . scheduleJob ( job , trigger ) ; logger . info ( "Scheduled<seq2seq4repair_space>job<seq2seq4repair_space>{}<seq2seq4repair_space>with<seq2seq4repair_space>trigger<seq2seq4repair_space>{}" , job , trigger ) ; } catch ( Exception e ) { logger . warn ( "ANNOTATED<seq2seq4repair_space>JOB<seq2seq4repair_space>+<seq2seq4repair_space>TRIGGER<seq2seq4repair_space>NOT<seq2seq4repair_space>ADDED!" , e ) ; } } } } else { logger . info ( "Not<seq2seq4repair_space>loading<seq2seq4repair_space>any<seq2seq4repair_space>annotated<seq2seq4repair_space>Jobs.<seq2seq4repair_space>No<seq2seq4repair_space>package<seq2seq4repair_space>name<seq2seq4repair_space>provided.<seq2seq4repair_space>Use<seq2seq4repair_space>SundialJobScheduler.createScheduler()<seq2seq4repair_space>to<seq2seq4repair_space>set<seq2seq4repair_space>the<seq2seq4repair_space>package<seq2seq4repair_space>name." ) ; } } public OperableTrigger buildCronTrigger ( CronTrigger cronTrigger , String jobName ) throws ParseException { } public OperableTrigger buildSimpleTrigger ( SimpleTrigger simpleTrigger , String jobName ) { } private void addToJobDataMap ( JobDataMap jobDataMap , String [ ] stringEncodedMap ) { } @ Override public void shutdown ( ) { } }

Fix:
JobDetail job = JobBuilder . newJobBuilder ( jobClass ) . withIdentity ( jobClass . getSimpleName ( ) ) . isConcurrencyAllowed ( simpleTrigger . isConcurrencyAllowed ( ) ) . usingJobData ( jobDataMap ) . build ( ) ;