Skip to content

Commit

Permalink
Apply Java Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
Boyuan Zhang committed Oct 3, 2018
1 parent ad135ab commit fc89e6a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ public String cloudObjectClassName() {
};
}


private static List<Coder<?>> getComponents(CloudObject target) {
List<Map<String, Object>> cloudComponents =
Structs.getListOfMaps(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,16 +440,16 @@ public GetWorkResponse getWork(GetWorkRequest request) {
@Override
public GetDataResponse getData(GetDataRequest request) {
if (syncApplianceStub == null) {
return callWithBackoff(
() ->
syncStub()
.withDeadlineAfter(deadlineSeconds, TimeUnit.SECONDS)
.getData(
request
.toBuilder()
.setJobId(options.getJobId())
.setProjectId(options.getProject())
.build()));
return callWithBackoff(
() ->
syncStub()
.withDeadlineAfter(deadlineSeconds, TimeUnit.SECONDS)
.getData(
request
.toBuilder()
.setJobId(options.getJobId())
.setProjectId(options.getProject())
.build()));
} else {
return callWithBackoff(
() ->
Expand All @@ -462,16 +462,16 @@ public GetDataResponse getData(GetDataRequest request) {
@Override
public CommitWorkResponse commitWork(CommitWorkRequest request) {
if (syncApplianceStub == null) {
return callWithBackoff(
() ->
syncStub()
.withDeadlineAfter(deadlineSeconds, TimeUnit.SECONDS)
.commitWork(
request
.toBuilder()
.setJobId(options.getJobId())
.setProjectId(options.getProject())
.build()));
return callWithBackoff(
() ->
syncStub()
.withDeadlineAfter(deadlineSeconds, TimeUnit.SECONDS)
.commitWork(
request
.toBuilder()
.setJobId(options.getJobId())
.setProjectId(options.getProject())
.build()));
} else {
return callWithBackoff(
() ->
Expand Down

0 comments on commit fc89e6a

Please sign in to comment.