diff --git a/spring-context/src/main/java/org/springframework/scheduling/config/TaskExecutionOutcome.java b/spring-context/src/main/java/org/springframework/scheduling/config/TaskExecutionOutcome.java index d4656c037cd..cbb6e1ec4cb 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/config/TaskExecutionOutcome.java +++ b/spring-context/src/main/java/org/springframework/scheduling/config/TaskExecutionOutcome.java @@ -23,11 +23,13 @@ import org.springframework.util.Assert; /** * Outcome of a {@link Task} execution. - * @param executionTime the instant when the task execution started, {@code null} if the task has not started. - * @param status the {@link Status} of the execution outcome. - * @param throwable the exception thrown from the task execution, if any. + * * @author Brian Clozel * @since 6.2 + * @param executionTime the instant when the task execution started, or + * {@code null} if the task has not started + * @param status the {@link Status} of the execution outcome + * @param throwable the exception thrown from the task execution, if any */ public record TaskExecutionOutcome(@Nullable Instant executionTime, Status status, @Nullable Throwable throwable) { @@ -54,21 +56,27 @@ public record TaskExecutionOutcome(@Nullable Instant executionTime, Status statu * Status of the task execution outcome. */ public enum Status { + /** * The task has not been executed so far. */ NONE, + /** * The task execution has been started and is ongoing. */ STARTED, + /** * The task execution finished successfully. */ SUCCESS, + /** * The task execution finished with an error. */ ERROR + } + } diff --git a/spring-test/src/main/java/org/springframework/test/web/reactive/server/JsonEncoderDecoder.java b/spring-test/src/main/java/org/springframework/test/web/reactive/server/JsonEncoderDecoder.java index 50af8b5edd9..ae861713ebe 100644 --- a/spring-test/src/main/java/org/springframework/test/web/reactive/server/JsonEncoderDecoder.java +++ b/spring-test/src/main/java/org/springframework/test/web/reactive/server/JsonEncoderDecoder.java @@ -31,15 +31,17 @@ import org.springframework.http.codec.HttpMessageWriter; import org.springframework.lang.Nullable; /** - * {@link Encoder} and {@link Decoder} that is able to handle a map to and from - * JSON. Used to configure the jsonpath infrastructure without having a hard + * {@link Encoder} and {@link Decoder} that is able to encode and decode + * a {@link Map} to and from JSON. + * + *

Used to configure the jsonpath infrastructure without having a hard * dependency on the library. * - * @param encoder the JSON encoder - * @param decoder the JSON decoder * @author Stephane Nicoll * @author Rossen Stoyanchev * @since 6.2 + * @param encoder the JSON encoder + * @param decoder the JSON decoder */ record JsonEncoderDecoder(Encoder encoder, Decoder decoder) { @@ -89,7 +91,7 @@ record JsonEncoderDecoder(Encoder encoder, Decoder decoder) { } /** - * Find the first suitable {@link Decoder} that can decode a {@link Map} to + * Find the first suitable {@link Decoder} that can decode a {@link Map} from * JSON. * @param readers the readers to inspect * @return a suitable JSON {@link Decoder} or {@code null}