Skip to content

Commit da3bc10

Browse files
committed
lint
Signed-off-by: Shijie Sheng <[email protected]>
1 parent 0bcb2aa commit da3bc10

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/main/java/com/uber/cadence/internal/compatibility/proto/mappers/RequestMapper.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ public static CountWorkflowExecutionsRequest countWorkflowExecutionsRequest(
121121
return null;
122122
}
123123
CountWorkflowExecutionsRequest.Builder request =
124-
CountWorkflowExecutionsRequest.newBuilder().setDomain(t.getDomain() != null ? t.getDomain() : "");
124+
CountWorkflowExecutionsRequest.newBuilder()
125+
.setDomain(t.getDomain() != null ? t.getDomain() : "");
125126
if (t.getQuery() != null) {
126127
request.setQuery(t.getQuery());
127128
}
@@ -972,7 +973,8 @@ public static GetTaskListsByDomainRequest getTaskListsByDomainRequest(
972973
return null;
973974
}
974975
GetTaskListsByDomainRequest.Builder request =
975-
GetTaskListsByDomainRequest.newBuilder().setDomain(domainRequest.getDomainName() != null ? domainRequest.getDomainName() : "");
976+
GetTaskListsByDomainRequest.newBuilder()
977+
.setDomain(domainRequest.getDomainName() != null ? domainRequest.getDomainName() : "");
976978
return request.build();
977979
}
978980

@@ -981,6 +983,8 @@ public static RefreshWorkflowTasksRequest refreshWorkflowTasksRequest(
981983
if (request == null) {
982984
return null;
983985
}
984-
return RefreshWorkflowTasksRequest.newBuilder().setDomain(request.getDomain() != null ? request.getDomain() : "").build();
986+
return RefreshWorkflowTasksRequest.newBuilder()
987+
.setDomain(request.getDomain() != null ? request.getDomain() : "")
988+
.build();
985989
}
986990
}

src/main/java/com/uber/cadence/internal/compatibility/proto/mappers/TypeMapper.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ static WorkflowExecution workflowRunPair(String workflowId, String runId) {
128128
if (Strings.isNullOrEmpty(workflowId) && Strings.isNullOrEmpty(runId)) {
129129
return WorkflowExecution.newBuilder().build();
130130
}
131-
return WorkflowExecution.newBuilder().setWorkflowId(workflowId).setRunId(runId != null ? runId : "").build();
131+
return WorkflowExecution.newBuilder()
132+
.setWorkflowId(workflowId)
133+
.setRunId(runId != null ? runId : "")
134+
.build();
132135
}
133136

134137
static ActivityType activityType(com.uber.cadence.ActivityType t) {

0 commit comments

Comments
 (0)