优化定时任务工具类代码

This commit is contained in:
稚屿
2022-01-08 01:49:52 +00:00
committed by Gitee
parent 9f7acd4cf9
commit cf6c58eb67

View File

@ -125,10 +125,7 @@ public class ScheduleUtils
int count = StringUtils.countMatches(packageName, "."); int count = StringUtils.countMatches(packageName, ".");
if (count > 1) if (count > 1)
{ {
if (!StringUtils.containsAnyIgnoreCase(invokeTarget, Constants.JOB_WHITELIST_STR)) return StringUtils.containsAnyIgnoreCase(invokeTarget, Constants.JOB_WHITELIST_STR);
{
return false;
}
} }
return true; return true;
} }