Skip to content

Commit 41a2ef1

Browse files
fix CI API Test spotless check
1 parent a17923a commit 41a2ef1

File tree

2 files changed

+6
-3
lines changed
  • dolphinscheduler-scheduler-plugin/dolphinscheduler-scheduler-quartz/src/main/java/org/apache/dolphinscheduler/scheduler/quartz
  • dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process

2 files changed

+6
-3
lines changed

dolphinscheduler-scheduler-plugin/dolphinscheduler-scheduler-quartz/src/main/java/org/apache/dolphinscheduler/scheduler/quartz/ProcessScheduleTask.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
package org.apache.dolphinscheduler.scheduler.quartz;
1919

20-
import org.apache.commons.lang3.StringUtils;
2120
import org.apache.dolphinscheduler.common.Constants;
2221
import org.apache.dolphinscheduler.common.enums.CommandType;
2322
import org.apache.dolphinscheduler.common.enums.ReleaseState;
@@ -27,6 +26,8 @@
2726
import org.apache.dolphinscheduler.scheduler.quartz.utils.QuartzTaskUtils;
2827
import org.apache.dolphinscheduler.service.process.ProcessService;
2928

29+
import org.apache.commons.lang3.StringUtils;
30+
3031
import java.util.Date;
3132

3233
import org.quartz.JobDataMap;

dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessServiceImpl.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import static org.apache.dolphinscheduler.plugin.task.api.enums.Direct.IN;
3333
import static org.apache.dolphinscheduler.plugin.task.api.utils.DataQualityConstants.TASK_INSTANCE_ID;
3434

35-
import org.apache.commons.lang3.StringUtils;
3635
import org.apache.dolphinscheduler.common.Constants;
3736
import org.apache.dolphinscheduler.common.enums.AuthorizationType;
3837
import org.apache.dolphinscheduler.common.enums.CommandType;
@@ -138,6 +137,7 @@
138137
import org.apache.dolphinscheduler.spi.enums.ResourceType;
139138

140139
import org.apache.commons.collections.CollectionUtils;
140+
import org.apache.commons.lang3.StringUtils;
141141

142142
import java.util.ArrayList;
143143
import java.util.Arrays;
@@ -416,7 +416,9 @@ public int createCommand(Command command) {
416416
// add command timezone
417417
Schedule schedule = scheduleMapper.queryByProcessDefinitionCode(command.getProcessDefinitionCode());
418418
if (schedule != null) {
419-
Map<String, String> commandParams = StringUtils.isNotBlank(command.getCommandParam()) ? JSONUtils.toMap(command.getCommandParam()) : new HashMap<>();
419+
Map<String, String> commandParams =
420+
StringUtils.isNotBlank(command.getCommandParam()) ? JSONUtils.toMap(command.getCommandParam())
421+
: new HashMap<>();
420422
commandParams.put(Constants.SCHEDULE_TIMEZONE, schedule.getTimezoneId());
421423
command.setCommandParam(JSONUtils.toJsonString(commandParams));
422424
}

0 commit comments

Comments
 (0)