Skip to content

Commit 16a7629

Browse files
committed
formatting fixes.
1 parent a6c47eb commit 16a7629

7 files changed

Lines changed: 17 additions & 16 deletions

File tree

temporal-sdk/src/main/java/io/temporal/internal/concurrent/structured/AsyncTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import java.util.function.Function;
88

99
/**
10-
* Internal task handle over a {@link CompletableFuture} that manages cancellation
11-
* and tracks derived tasks.
10+
* Internal task handle over a {@link CompletableFuture} that manages cancellation and tracks
11+
* derived tasks.
1212
*
1313
* <p><strong>Continuation style.</strong> {@link #map}, {@link #recover}, and {@link #whenSettled}
1414
* chain follow-on work, mirroring {@code thenApply}/{@code exceptionally}/{@code whenComplete}.

temporal-sdk/src/main/java/io/temporal/internal/concurrent/structured/CancelSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import java.util.List;
66

77
/**
8-
* The <em>write</em> side of cancellation. Whoever holds the {@code CancelSource} can
9-
* request cancellation while everyone else observes using {@link #token()}.
8+
* The <em>write</em> side of cancellation. Whoever holds the {@code CancelSource} can request
9+
* cancellation while everyone else observes using {@link #token()}.
1010
*/
1111
public final class CancelSource {
1212

temporal-sdk/src/main/java/io/temporal/internal/concurrent/structured/DefaultAsyncTask.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
import java.util.function.Consumer;
1212
import java.util.function.Function;
1313

14-
/**
15-
* Reference implementation of {@link AsyncTask}.
16-
*/
14+
/** Reference implementation of {@link AsyncTask}. */
1715
final class DefaultAsyncTask<T> implements AsyncTask<T> {
1816

1917
final CompletableFuture<T> cf;

temporal-sdk/src/main/java/io/temporal/internal/concurrent/structured/DefaultTaskScope.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ public void close() {
190190

191191
/**
192192
* Non-blocking completion for {@link TaskScope#withScope}: when {@code body} settles, cancels the
193-
* group on failure, waits for every task to settle, then delivers the outcome. The returned future
194-
* does not settle until all tasks have, so no task outlives the scope.
193+
* group on failure, waits for every task to settle, then delivers the outcome. The returned
194+
* future does not settle until all tasks have, so no task outlives the scope.
195195
*/
196196
<R> CompletableFuture<R> closeWhenDone(CompletableFuture<R> body) {
197197
CompletableFuture<R> delivered = new CompletableFuture<>();
@@ -219,7 +219,9 @@ private CompletableFuture<Void> allTerminated() {
219219
return awaitTermination(0, null);
220220
}
221221

222-
/** Runs {@code body} against {@code scope} and ties the scope's lifetime to the returned future. */
222+
/**
223+
* Runs {@code body} against {@code scope} and ties the scope's lifetime to the returned future.
224+
*/
223225
static <T, R> CompletableFuture<R> run(
224226
DefaultTaskScope<T> scope, Function<TaskScope<T>, CompletableFuture<R>> body) {
225227
CompletableFuture<R> future;

temporal-sdk/src/main/java/io/temporal/internal/concurrent/structured/TaskChain.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ public interface TaskChain<T> {
1010
<R> TaskChain<R> map(Function<? super T, ? extends R> fn);
1111

1212
/**
13-
* Supplies a fallback value if this chain fails. Unlike {@code CompletableFuture.exceptionally}, a
14-
* cancelled chain is not recovered (cancellation propagates) and the fallback receives the
13+
* Supplies a fallback value if this chain fails. Unlike {@code CompletableFuture.exceptionally},
14+
* a cancelled chain is not recovered (cancellation propagates) and the fallback receives the
1515
* unwrapped cause.
1616
*/
1717
TaskChain<T> recover(Function<? super Throwable, ? extends T> fn);

temporal-sdk/src/main/java/io/temporal/internal/concurrent/structured/TaskScope.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ default CompletableFuture<List<T>> awaitAll() {
5959
/**
6060
* Non-blocking fail-fast wait that collects all task results and passes them to a transformer.
6161
*
62-
* <p>The returned future completes after all collected tasks complete successfully. Attached tasks
63-
* are collected by default; when a collected task is transformed, the transformed child replaces
64-
* its parent in the collected result list. On first failure or cancellation it completes
62+
* <p>The returned future completes after all collected tasks complete successfully. Attached
63+
* tasks are collected by default; when a collected task is transformed, the transformed child
64+
* replaces its parent in the collected result list. On first failure or cancellation it completes
6565
* exceptionally and cancels unfinished tasks.
6666
*
6767
* <p>This method does not close the scope. Scope lifetime remains caller-owned.

temporal-sdk/src/test/java/io/temporal/internal/common/ListUtilsTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ public class ListUtilsTest {
1616
@Test
1717
public void flattensNestedCollectionsInOrder() {
1818
List<Integer> flat =
19-
ListUtils.flatten(Arrays.asList(Arrays.asList(1, 2), Arrays.asList(3), Arrays.asList(4, 5)));
19+
ListUtils.flatten(
20+
Arrays.asList(Arrays.asList(1, 2), Arrays.asList(3), Arrays.asList(4, 5)));
2021

2122
assertEquals(Arrays.asList(1, 2, 3, 4, 5), flat);
2223
}

0 commit comments

Comments
 (0)