优化定时任务工具类代码

This commit is contained in:
稚屿 2022-01-08 01:49:52 +00:00 committed by Gitee
parent 9f7acd4cf9
commit cf6c58eb67
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

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