Skip to content

Commit 59c779d

Browse files
committed
Enforce order of Javadoc tags for records introduced in 6.2
See gh-33403
1 parent 04271c3 commit 59c779d

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

spring-context/src/main/java/org/springframework/scheduling/config/TaskExecutionOutcome.java

+11-3
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@
2323

2424
/**
2525
* Outcome of a {@link Task} execution.
26-
* @param executionTime the instant when the task execution started, {@code null} if the task has not started.
27-
* @param status the {@link Status} of the execution outcome.
28-
* @param throwable the exception thrown from the task execution, if any.
26+
*
2927
* @author Brian Clozel
3028
* @since 6.2
29+
* @param executionTime the instant when the task execution started, or
30+
* {@code null} if the task has not started
31+
* @param status the {@link Status} of the execution outcome
32+
* @param throwable the exception thrown from the task execution, if any
3133
*/
3234
public record TaskExecutionOutcome(@Nullable Instant executionTime, Status status, @Nullable Throwable throwable) {
3335

@@ -54,21 +56,27 @@ static TaskExecutionOutcome create() {
5456
* Status of the task execution outcome.
5557
*/
5658
public enum Status {
59+
5760
/**
5861
* The task has not been executed so far.
5962
*/
6063
NONE,
64+
6165
/**
6266
* The task execution has been started and is ongoing.
6367
*/
6468
STARTED,
69+
6570
/**
6671
* The task execution finished successfully.
6772
*/
6873
SUCCESS,
74+
6975
/**
7076
* The task execution finished with an error.
7177
*/
7278
ERROR
79+
7380
}
81+
7482
}

spring-test/src/main/java/org/springframework/test/web/reactive/server/JsonEncoderDecoder.java

+7-5
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,17 @@
3131
import org.springframework.lang.Nullable;
3232

3333
/**
34-
* {@link Encoder} and {@link Decoder} that is able to handle a map to and from
35-
* JSON. Used to configure the jsonpath infrastructure without having a hard
34+
* {@link Encoder} and {@link Decoder} that is able to encode and decode
35+
* a {@link Map} to and from JSON.
36+
*
37+
* <p>Used to configure the jsonpath infrastructure without having a hard
3638
* dependency on the library.
3739
*
38-
* @param encoder the JSON encoder
39-
* @param decoder the JSON decoder
4040
* @author Stephane Nicoll
4141
* @author Rossen Stoyanchev
4242
* @since 6.2
43+
* @param encoder the JSON encoder
44+
* @param decoder the JSON decoder
4345
*/
4446
record JsonEncoderDecoder(Encoder<?> encoder, Decoder<?> decoder) {
4547

@@ -89,7 +91,7 @@ private static Encoder<?> findJsonEncoder(Stream<Encoder<?>> stream) {
8991
}
9092

9193
/**
92-
* Find the first suitable {@link Decoder} that can decode a {@link Map} to
94+
* Find the first suitable {@link Decoder} that can decode a {@link Map} from
9395
* JSON.
9496
* @param readers the readers to inspect
9597
* @return a suitable JSON {@link Decoder} or {@code null}

0 commit comments

Comments
 (0)