update JDA and jda Utilities version

fixed typos in the code
This commit is contained in:
Sheldan
2020-06-28 12:04:34 +02:00
parent c44eb80fc5
commit e8767429bf
40 changed files with 106 additions and 107 deletions

View File

@@ -10,7 +10,7 @@ public class SchedulerJobConverter {
/**
* Converts a {@link SchedulerJobProperties} instance to a usable {@link SchedulerJob} instance
* @param properties The instance directly coming from a property file
* @return A instanc eof {@link SchedulerJob} which represents an instance from the database
* @return A instance eof {@link SchedulerJob} which represents an instance from the database
*/
public SchedulerJob fromJobProperties(SchedulerJobProperties properties) {
return SchedulerJob

View File

@@ -8,7 +8,7 @@ import org.springframework.stereotype.Repository;
import javax.persistence.QueryHint;
/**
* Repository repsonsible to access the stored job configuration in the database
* Repository responsible to access the stored job configuration in the database
*/
@Repository
public interface SchedulerJobRepository extends JpaRepository<SchedulerJob, Long> {

View File

@@ -57,7 +57,7 @@ public class SchedulerServiceBean implements SchedulerService {
boolean recurringJob = isRecurringJob(schedulerJob);
jobDetail = scheduleCreator.createJob((Class<? extends QuartzJobBean>) Class.forName(schedulerJob.getClazz()),
!recurringJob, context, schedulerJob.getName(), schedulerJob.getGroupName(), schedulerJob.isRecovery());
// if its a cron job, we can schedule it directly, otherwise we just make the scheduler aware of its existance
// if its a cron job, we can schedule it directly, otherwise we just make the scheduler aware of its existence
// and trigger it later
if(recurringJob) {
Trigger trigger = scheduleCreator.createBasicCronTrigger(new Date(),

View File

@@ -26,7 +26,7 @@ public interface SchedulerService {
/**
* Removes a job from the scheduler.
* @param triggerKey The key of the trigger to unschedule
* @param triggerKey The key of the trigger to unSchedule
* @return if the job was found and unscheduled
*/
boolean unScheduleJob(String triggerKey);