Trigger trigger =
TriggerBuilder.newTrigger().withIdentity(jobinfo.getJobName(), jobinfo.getGroupName()).startAt(date).build();
@SuppressWarnings("unchecked")
JobDetail job =
JobBuilder.newJob(jobinfo.getJob()).withIdentity(jobinfo.getJobName(), jobinfo.getGroupName())
<BUG>.withDescription(jinfo.getDescription()).build();
scheduleJob(job, trigger);</BUG>
}
public void addPeriodJob(JobInfo jinfo, int repeatCount, long period) throws Exception
{

Trigger trigger =
TriggerBuilder.newTrigger().withIdentity(jobinfo.getJobName(), jobinfo.getGroupName()).startAt(date).build();
@SuppressWarnings("unchecked")
JobDetail job =
JobBuilder.newJob(jobinfo.getJob()).withIdentity(jobinfo.getJobName(), jobinfo.getGroupName())
.withDescription(jinfo.getDescription()).requestRecovery(jinfo.isShouldRecover()).build();
scheduleJob(job, trigger);
}
public void addPeriodJob(JobInfo jinfo, int repeatCount, long period) throws Exception
{
