This commit is contained in:
Looly
2021-06-16 02:01:56 +08:00
parent 373c30b9f0
commit 8c3298fed4
25 changed files with 246 additions and 395 deletions

View File

@@ -1,6 +1,6 @@
package cn.hutool.cron;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.map.MapUtil;
import cn.hutool.core.thread.ExecutorBuilder;
import cn.hutool.core.thread.ThreadFactoryBuilder;
import cn.hutool.core.util.CharUtil;
@@ -180,7 +180,7 @@ public class Scheduler implements Serializable {
* @return this
*/
public Scheduler schedule(Setting cronSetting) {
if (CollUtil.isNotEmpty(cronSetting)) {
if (MapUtil.isNotEmpty(cronSetting)) {
String group;
for (Entry<String, LinkedHashMap<String, String>> groupedEntry : cronSetting.getGroupedMap().entrySet()) {
group = groupedEntry.getKey();