ggpx/ruoyi-quartz/src/main/java/com/ruoyi/quartz
Nymph2333 af0e0a110e
newInstance() 已弃用,使用clazz.getDeclaredConstructor().newInstance()
This method propagates any exception thrown by the nullary constructor, including a checked exception. Use of this method effectively bypasses the compile-time exception checking that would otherwise be performed by the compiler. The Constructor.newInstance method avoids this problem by wrapping any exception thrown by the constructor in a (checked) InvocationTargetException.
The call
 clazz.newInstance()
can be replaced by
 clazz.getDeclaredConstructor().newInstance()
The latter sequence of calls is inferred to be able to throw the additional exception types InvocationTargetException and NoSuchMethodException. Both of these exception types are subclasses of ReflectiveOperationException.

Signed-off-by: Nymph2333 <498092988@qq.com>
2023-04-10 06:27:40 +00:00
..
config 定时任务默认保存到内存中执行 2022-02-22 19:10:21 +08:00
controller 根据调度编号获取详细信息参数名改正 2022-10-31 05:51:08 +00:00
domain 生成vue模板导出按钮点击后添加遮罩 2021-05-24 11:34:03 +08:00
mapper 若依 3.0 2020-07-19 10:25:40 +08:00
service 优化任务过期不执行调度 2022-07-29 20:28:59 +08:00
task 若依 3.0 2020-07-19 10:25:40 +08:00
util newInstance() 已弃用,使用clazz.getDeclaredConstructor().newInstance() 2023-04-10 06:27:40 +00:00