Skip to content

Commit 522410d

Browse files
authored
Java format + updates (temporalio#124)
1 parent 439b5a6 commit 522410d

File tree

9 files changed

+19
-18
lines changed

9 files changed

+19
-18
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
plugins {
44
id 'org.cadixdev.licenser' version '0.6.1'
55
id 'com.github.sherter.google-java-format' version '0.9'
6-
id "net.ltgt.errorprone" version "2.0.1"
6+
id "net.ltgt.errorprone" version "2.0.2"
77
id 'name.remal.check-updates' version '1.4.0'
88
}
99

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/main/java/io/temporal/samples/hello/HelloActivityExclusiveChoice.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
import java.util.HashMap;
3434
import java.util.Map;
3535

36-
/** Sample Temporal Workflow Definition demonstrating how to execute an Activity based on dynamic input. */
36+
/**
37+
* Sample Temporal Workflow Definition demonstrating how to execute an Activity based on dynamic
38+
* input.
39+
*/
3740
public class HelloActivityExclusiveChoice {
3841

3942
// Define the task queue name

src/main/java/io/temporal/samples/hello/HelloAsync.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import io.temporal.workflow.WorkflowMethod;
3434
import java.time.Duration;
3535

36-
/** Sample Temporal Workflow Definition that demonstrates an asynchronous Activity Execution. */
36+
/** Sample Temporal Workflow Definition that demonstrates an asynchronous Activity Execution. */
3737
public class HelloAsync {
3838

3939
// Define the task queue name

src/main/java/io/temporal/samples/hello/HelloAsyncActivityCompletion.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ public static void main(String[] args) throws ExecutionException, InterruptedExc
183183
Worker worker = factory.newWorker(TASK_QUEUE);
184184

185185
/**
186-
* Register our Workflow Types with the Worker. Workflow Types must be known
187-
* to the Worker at runtime in order for it to poll for Workflow Tasks.
186+
* Register our Workflow Types with the Worker. Workflow Types must be known to the Worker at
187+
* runtime in order for it to poll for Workflow Tasks.
188188
*/
189189
worker.registerWorkflowImplementationTypes(GreetingWorkflowImpl.class);
190190

@@ -196,8 +196,8 @@ public static void main(String[] args) throws ExecutionException, InterruptedExc
196196
worker.registerActivitiesImplementations(new GreetingActivitiesImpl(completionClient));
197197

198198
/**
199-
* Start all the Workers registered for a specific Task Queue. The Workers then start
200-
* polling for Workflow Tasks and Activity Tasks.
199+
* Start all the Workers registered for a specific Task Queue. The Workers then start polling
200+
* for Workflow Tasks and Activity Tasks.
201201
*/
202202
factory.start();
203203

src/main/java/io/temporal/samples/hello/HelloAsyncLambda.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@
3333
import io.temporal.workflow.WorkflowMethod;
3434
import java.time.Duration;
3535

36-
/**
37-
* Sample Temporal Workflow Definition that demonstrates an asynchronous Activity Executions.
38-
*/
36+
/** Sample Temporal Workflow Definition that demonstrates an asynchronous Activity Executions. */
3937
public class HelloAsyncLambda {
4038

4139
// Define the task queue name

src/main/java/io/temporal/samples/hello/HelloCancellationScope.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
import java.util.Random;
4646

4747
/**
48-
* Sample Temporal Workflow Definition that demonstrates parallel Activity Executions
49-
* with a Cancellation Scope. When one of the Activity Executions finish, we cancel the execution of the
48+
* Sample Temporal Workflow Definition that demonstrates parallel Activity Executions with a
49+
* Cancellation Scope. When one of the Activity Executions finish, we cancel the execution of the
5050
* other Activities and wait for their cancellation to complete.
5151
*/
5252
public class HelloCancellationScope {

src/main/java/io/temporal/samples/hello/HelloChild.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
import io.temporal.workflow.WorkflowMethod;
3232

3333
/**
34-
* Sample Temporal Workflow Definition that demonstrates the execution of a Child Workflow. Child workflows allow you to
35-
* group your Workflow logic into small logical and reusable units that solve a particular problem.
36-
* They can be typically reused by multiple other Workflows.
34+
* Sample Temporal Workflow Definition that demonstrates the execution of a Child Workflow. Child
35+
* workflows allow you to group your Workflow logic into small logical and reusable units that solve
36+
* a particular problem. They can be typically reused by multiple other Workflows.
3737
*/
3838
public class HelloChild {
3939

src/main/java/io/temporal/samples/hello/HelloPolymorphicActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
import java.time.Duration;
3333

3434
/**
35-
* Sample Temporal Workflow Definition that demonstrates the execution of multiple Activities which extend a common
36-
* interface.
35+
* Sample Temporal Workflow Definition that demonstrates the execution of multiple Activities which
36+
* extend a common interface.
3737
*/
3838
public class HelloPolymorphicActivity {
3939

0 commit comments

Comments
 (0)