【fix sonar】QuartzJobServiceImpl文件
This commit is contained in:
+1
-2
@@ -91,7 +91,6 @@ public class QuartzJobServiceImpl extends ServiceImpl<QuartzJobMapper, QuartzJob
|
||||
@Transactional(rollbackFor = JeroBootException.class)
|
||||
public boolean deleteAndStopJob(QuartzJob job) {
|
||||
schedulerDelete(job.getId());
|
||||
// boolean ok = this.removeById(job.getId());
|
||||
return this.removeById(job.getId());
|
||||
}
|
||||
|
||||
@@ -173,7 +172,7 @@ public class QuartzJobServiceImpl extends ServiceImpl<QuartzJobMapper, QuartzJob
|
||||
}
|
||||
}
|
||||
|
||||
private static Job getClass(String classname) throws Exception {
|
||||
private static Job getClass(String classname) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
|
||||
Class<?> class1 = Class.forName(classname);
|
||||
return (Job) class1.newInstance();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user