Skip to content

Commit

Permalink
bump up version to 2.0.0 (#192)
Browse files Browse the repository at this point in the history
* bump up version to 2.0.0

* fix formatting
  • Loading branch information
halakaraki authored Aug 6, 2018
1 parent 0a9b597 commit 95896f2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Add *cadence-client* as a dependency to your *pom.xml*:
<dependency>
<groupId>com.uber.cadence</groupId>
<artifactId>cadence-client</artifactId>
<version>1.0.5</version>
<version>2.0.0</version>
</dependency>

or to *build.gradle*:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ googleJavaFormat {
}

group = 'com.uber.cadence'
version = '1.0.5'
version = '2.0.0'

description = """Uber Cadence Java Client"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

final class ActivityPollTask
implements Poller.PollTask<ActivityWorker.MeasurableActivityTask> {
final class ActivityPollTask implements Poller.PollTask<ActivityWorker.MeasurableActivityTask> {

private final IWorkflowService service;
private final String domain;
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/uber/cadence/internal/worker/Poller.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@

package com.uber.cadence.internal.worker;

import com.google.common.base.Preconditions;
import com.uber.cadence.internal.common.BackoffThrottler;
import com.uber.cadence.internal.metrics.MetricsType;
import com.uber.m3.tally.Scope;

import java.util.Objects;
import java.util.concurrent.*;
import java.util.concurrent.atomic.AtomicReference;
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/com/uber/cadence/worker/Worker.java
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ public Factory(String host, int port, String domain) {

public Factory(IWorkflowService workflowService, String domain) {
Objects.requireNonNull(workflowService, "workflowService should not be null");
Preconditions.checkArgument(!Strings.isNullOrEmpty(domain), "domain should not be an empty string");
Preconditions.checkArgument(
!Strings.isNullOrEmpty(domain), "domain should not be an empty string");

this.workflowService = workflowService;
this.domain = domain;
Expand All @@ -335,7 +336,8 @@ public Worker newWorker(String taskList) {
}

public Worker newWorker(String taskList, WorkerOptions options) {
Preconditions.checkArgument(!Strings.isNullOrEmpty(taskList), "taskList should not be an empty string");
Preconditions.checkArgument(
!Strings.isNullOrEmpty(taskList), "taskList should not be an empty string");

synchronized (this) {
Preconditions.checkState(
Expand Down

0 comments on commit 95896f2

Please sign in to comment.