Skip to content

Commit a5b5bab

Browse files
committed
after lint
1 parent fa40ace commit a5b5bab

File tree

3 files changed

+27
-11
lines changed

3 files changed

+27
-11
lines changed

src/main/java/com/uber/cadence/migration/MigrationActivities.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
import com.uber.cadence.RequestCancelWorkflowExecutionRequest;
2121
import com.uber.cadence.StartWorkflowExecutionRequest;
22-
import com.uber.cadence.StartWorkflowExecutionResponse;
2322
import com.uber.cadence.activity.ActivityMethod;
2423

2524
public interface MigrationActivities {

src/main/java/com/uber/cadence/migration/MigrationActivitiesImpl.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
import com.uber.cadence.RequestCancelWorkflowExecutionRequest;
2121
import com.uber.cadence.StartWorkflowExecutionRequest;
22-
import com.uber.cadence.StartWorkflowExecutionResponse;
2322
import com.uber.cadence.WorkflowExecutionAlreadyStartedError;
2423
import com.uber.cadence.client.WorkflowClient;
2524
import com.uber.cadence.workflow.Workflow;
@@ -37,9 +36,11 @@ public MigrationActivitiesImpl(
3736
public StartWorkflowInNewResponse startWorkflowInNewDomain(
3837
StartWorkflowExecutionRequest request) {
3938
try {
40-
return new StartWorkflowInNewResponse(clientInNewDomain.getService().StartWorkflowExecution(request),"New workflow starting successful");
39+
return new StartWorkflowInNewResponse(
40+
clientInNewDomain.getService().StartWorkflowExecution(request),
41+
"New workflow starting successful");
4142
} catch (WorkflowExecutionAlreadyStartedError e) {
42-
return new StartWorkflowInNewResponse(null,"Workflow already started");
43+
return new StartWorkflowInNewResponse(null, "Workflow already started");
4344
} catch (Exception e) {
4445
throw Workflow.wrap(e);
4546
}
Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
1+
/*
2+
* Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Modifications copyright (C) 2017 Uber Technologies, Inc.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License"). You may not
7+
* use this file except in compliance with the License. A copy of the License is
8+
* located at
9+
*
10+
* http://aws.amazon.com/apache2.0
11+
*
12+
* or in the "license" file accompanying this file. This file is distributed on
13+
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14+
* express or implied. See the License for the specific language governing
15+
* permissions and limitations under the License.
16+
*/
17+
118
package com.uber.cadence.migration;
219

320
import com.uber.cadence.StartWorkflowExecutionResponse;
421

522
public class StartWorkflowInNewResponse {
6-
StartWorkflowExecutionResponse startWorkflowExecutionResponse;
7-
String message;
8-
9-
StartWorkflowInNewResponse(StartWorkflowExecutionResponse startWorkflowResponse, String msg){
10-
startWorkflowExecutionResponse = startWorkflowResponse;
11-
message = msg;
12-
}
23+
StartWorkflowExecutionResponse startWorkflowExecutionResponse;
24+
String message;
1325

26+
StartWorkflowInNewResponse(StartWorkflowExecutionResponse startWorkflowResponse, String msg) {
27+
startWorkflowExecutionResponse = startWorkflowResponse;
28+
message = msg;
29+
}
1430
}

0 commit comments

Comments
 (0)