Browse Source

refactor code style

pull/3/MERGE
baoliang 4 years ago
parent
commit
c7005b4944
  1. 5
      dolphinscheduler-remote/src/main/java/org/apache/dolphinscheduler/remote/command/DBTaskAckCommand.java

5
dolphinscheduler-remote/src/main/java/org/apache/dolphinscheduler/remote/command/DBTaskAckCommand.java

@ -29,7 +29,7 @@ public class DBTaskAckCommand implements Serializable {
private int taskInstanceId;
private int status;
public DBTaskAckCommand(int status,int taskInstanceId) {
public DBTaskAckCommand(int status, int taskInstanceId) {
this.status = status;
this.taskInstanceId = taskInstanceId;
}
@ -52,9 +52,10 @@ public class DBTaskAckCommand implements Serializable {
/**
* package response command
*
* @return command
*/
public Command convert2Command(){
public Command convert2Command() {
Command command = new Command();
command.setType(CommandType.DB_TASK_ACK);
byte[] body = JSONUtils.toJsonByteArray(this);

Loading…
Cancel
Save