Skip to content

Commit 34a4032

Browse files
committed
Adjust since information of code backported to 5.14
1 parent 1d6da4b commit 34a4032

File tree

39 files changed

+116
-116
lines changed

39 files changed

+116
-116
lines changed

junit-jupiter-api/src/main/java/org/junit/jupiter/api/MediaType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
*
3030
* <p><strong>WARNING</strong>: This type should not be extended by third parties.
3131
*
32-
* @since 6.0
32+
* @since 5.14
3333
* @see TestReporter#publishFile(Path, MediaType)
3434
* @see TestReporter#publishFile(String, MediaType, org.junit.jupiter.api.function.ThrowingConsumer)
3535
* @see org.junit.jupiter.api.extension.ExtensionContext#publishFile(String, MediaType, org.junit.jupiter.api.function.ThrowingConsumer)
3636
*/
37-
@API(status = MAINTAINED, since = "6.0")
37+
@API(status = MAINTAINED, since = "5.14")
3838
public class MediaType {
3939

4040
private static final Pattern PATTERN;

junit-jupiter-api/src/main/java/org/junit/jupiter/api/TestReporter.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ default void publishEntry(String value) {
101101
* @since 5.12
102102
* @deprecated Use {@link #publishFile(Path, MediaType)} instead.
103103
*/
104-
@Deprecated(since = "6.0", forRemoval = true)
105-
@API(status = DEPRECATED, since = "6.0")
104+
@Deprecated(since = "5.14", forRemoval = true)
105+
@API(status = DEPRECATED, since = "5.14")
106106
@SuppressWarnings("removal")
107107
default void publishFile(Path file, org.junit.jupiter.api.extension.MediaType mediaType) {
108108
Preconditions.notNull(mediaType, "mediaType must not be null");
@@ -118,9 +118,9 @@ default void publishFile(Path file, org.junit.jupiter.api.extension.MediaType me
118118
* @param file the file to be published; never {@code null}
119119
* @param mediaType the media type of the file; never {@code null}; use
120120
* {@link MediaType#APPLICATION_OCTET_STREAM} if unknown
121-
* @since 6.0
121+
* @since 5.14
122122
*/
123-
@API(status = MAINTAINED, since = "6.0")
123+
@API(status = MAINTAINED, since = "5.14")
124124
default void publishFile(Path file, MediaType mediaType) {
125125
Preconditions.notNull(file, "file must not be null");
126126
Preconditions.notNull(mediaType, "mediaType must not be null");
@@ -180,8 +180,8 @@ default void publishDirectory(Path directory) {
180180
* @since 5.12
181181
* @deprecated Use {@link #publishFile(String, MediaType, ThrowingConsumer)} instead.
182182
*/
183-
@Deprecated(since = "6.0", forRemoval = true)
184-
@API(status = DEPRECATED, since = "6.0")
183+
@Deprecated(since = "5.14", forRemoval = true)
184+
@API(status = DEPRECATED, since = "5.14")
185185
@SuppressWarnings("removal")
186186
default void publishFile(String name, org.junit.jupiter.api.extension.MediaType mediaType,
187187
ThrowingConsumer<Path> action) {
@@ -202,9 +202,9 @@ default void publishFile(String name, org.junit.jupiter.api.extension.MediaType
202202
* @param mediaType the media type of the file; never {@code null}; use
203203
* {@link MediaType#APPLICATION_OCTET_STREAM} if unknown
204204
* @param action the action to be executed to write the file; never {@code null}
205-
* @since 6.0
205+
* @since 5.14
206206
*/
207-
@API(status = MAINTAINED, since = "6.0")
207+
@API(status = MAINTAINED, since = "5.14")
208208
default void publishFile(String name, MediaType mediaType, ThrowingConsumer<Path> action) {
209209
throw new UnsupportedOperationException();
210210
}

junit-jupiter-api/src/main/java/org/junit/jupiter/api/extension/ExtensionContext.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ default void publishReportEntry(String value) {
419419
* {@link #publishFile(String, MediaType, ThrowingConsumer)}
420420
* instead.
421421
*/
422-
@Deprecated(since = "6.0", forRemoval = true)
423-
@API(status = DEPRECATED, since = "6.0")
422+
@Deprecated(since = "5.14", forRemoval = true)
423+
@API(status = DEPRECATED, since = "5.14")
424424
@SuppressWarnings("removal")
425425
default void publishFile(String name, org.junit.jupiter.api.extension.MediaType mediaType,
426426
ThrowingConsumer<Path> action) {
@@ -441,10 +441,10 @@ default void publishFile(String name, org.junit.jupiter.api.extension.MediaType
441441
* @param mediaType the media type of the file; never {@code null}; use
442442
* {@link MediaType#APPLICATION_OCTET_STREAM} if unknown
443443
* @param action the action to be executed to write the file; never {@code null}
444-
* @since 6.0
444+
* @since 5.14
445445
* @see org.junit.platform.engine.EngineExecutionListener#fileEntryPublished
446446
*/
447-
@API(status = MAINTAINED, since = "6.0")
447+
@API(status = MAINTAINED, since = "5.14")
448448
void publishFile(String name, MediaType mediaType, ThrowingConsumer<Path> action);
449449

450450
/**

junit-jupiter-api/src/main/java/org/junit/jupiter/api/extension/MediaType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
* @see ExtensionContext#publishFile(String, MediaType, org.junit.jupiter.api.function.ThrowingConsumer)
3333
* @deprecated Use {@link org.junit.jupiter.api.MediaType} instead.
3434
*/
35-
@Deprecated(since = "6.0", forRemoval = true)
36-
@API(status = Status.DEPRECATED, since = "6.0")
35+
@Deprecated(since = "5.14", forRemoval = true)
36+
@API(status = Status.DEPRECATED, since = "5.14")
3737
public final class MediaType extends org.junit.jupiter.api.MediaType {
3838

3939
/**

junit-jupiter-engine/src/main/java/org/junit/jupiter/engine/execution/LauncherStoreFacade.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.junit.platform.engine.support.store.Namespace;
2020
import org.junit.platform.engine.support.store.NamespacedHierarchicalStore;
2121

22-
@API(status = INTERNAL, since = "6.0")
22+
@API(status = INTERNAL, since = "5.14")
2323
public class LauncherStoreFacade {
2424

2525
private final NamespacedHierarchicalStore<Namespace> requestLevelStore;

junit-jupiter-params/src/main/java/org/junit/jupiter/params/ParameterInfo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@
4444
* retrieving the {@code ParameterInfo} instance from the
4545
* {@link ExtensionContext.Store Store}.
4646
*
47-
* @since 6.0
47+
* @since 5.14
4848
* @see ParameterizedClass
4949
* @see ParameterizedTest
5050
*/
51-
@API(status = EXPERIMENTAL, since = "6.0")
51+
@API(status = EXPERIMENTAL, since = "5.14")
5252
public interface ParameterInfo {
5353

5454
/**

junit-jupiter-params/src/main/java/org/junit/jupiter/params/support/ParameterInfo.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
* @see ParameterizedTest
5050
* @deprecated Please use {@link org.junit.jupiter.params.ParameterInfo} instead
5151
*/
52-
@Deprecated(since = "6.0", forRemoval = true)
53-
@API(status = DEPRECATED, since = "6.0")
52+
@Deprecated(since = "5.14", forRemoval = true)
53+
@API(status = DEPRECATED, since = "5.14")
5454
public interface ParameterInfo extends org.junit.jupiter.params.ParameterInfo {
5555

5656
/**
@@ -59,8 +59,8 @@ public interface ParameterInfo extends org.junit.jupiter.params.ParameterInfo {
5959
* @deprecated Please use
6060
* {@link org.junit.jupiter.params.ParameterInfo#NAMESPACE} instead
6161
*/
62-
@Deprecated(since = "6.0", forRemoval = true)
63-
@API(status = DEPRECATED, since = "6.0")
62+
@Deprecated(since = "5.14", forRemoval = true)
63+
@API(status = DEPRECATED, since = "5.14")
6464
Namespace NAMESPACE = Namespace.create(ParameterInfo.class);
6565

6666
/**
@@ -69,8 +69,8 @@ public interface ParameterInfo extends org.junit.jupiter.params.ParameterInfo {
6969
* @deprecated Please use
7070
* {@link org.junit.jupiter.params.ParameterInfo#KEY} instead
7171
*/
72-
@Deprecated(since = "6.0", forRemoval = true)
73-
@API(status = DEPRECATED, since = "6.0")
72+
@Deprecated(since = "5.14", forRemoval = true)
73+
@API(status = DEPRECATED, since = "5.14")
7474
Object KEY = ParameterInfo.class;
7575

7676
/**
@@ -80,8 +80,8 @@ public interface ParameterInfo extends org.junit.jupiter.params.ParameterInfo {
8080
* {@link org.junit.jupiter.params.ParameterInfo#get(ExtensionContext)}
8181
* instead
8282
*/
83-
@Deprecated(since = "6.0", forRemoval = true)
84-
@API(status = DEPRECATED, since = "6.0")
83+
@Deprecated(since = "5.14", forRemoval = true)
84+
@API(status = DEPRECATED, since = "5.14")
8585
static @Nullable ParameterInfo get(ExtensionContext context) {
8686
return context.getStore(NAMESPACE).get(KEY, ParameterInfo.class);
8787
}

junit-platform-commons/src/main/java/org/junit/platform/commons/io/DefaultResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* Default implementation of {@link Resource}.
2222
*
23-
* @since 6.0
23+
* @since 1.14
2424
*/
2525
record DefaultResource(String name, URI uri) implements Resource {
2626

junit-platform-commons/src/main/java/org/junit/platform/commons/io/Resource.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
* implementations since a {@code Resource} may potentially be stored in a
2727
* collection or map.
2828
*
29-
* @since 6.0
29+
* @since 1.14
3030
* @see org.junit.platform.commons.support.ResourceSupport
3131
*/
32-
@API(status = MAINTAINED, since = "6.0")
32+
@API(status = MAINTAINED, since = "1.14")
3333
public interface Resource {
3434

3535
/**
@@ -38,7 +38,7 @@ public interface Resource {
3838
* @param name the name of the resource; never {@code null}
3939
* @param uri the URI of the resource; never {@code null}
4040
* @return a new {@code Resource}
41-
* @since 6.0
41+
* @since 1.14
4242
*/
4343
static Resource of(String name, URI uri) {
4444
return new DefaultResource(name, uri);

junit-platform-commons/src/main/java/org/junit/platform/commons/io/ResourceFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
/**
2323
* Resource filter used by reflection and classpath scanning support.
2424
*
25-
* @since 6.0
25+
* @since 1.14
2626
* @see Resource
2727
*/
28-
@API(status = MAINTAINED, since = "6.0")
28+
@API(status = MAINTAINED, since = "1.14")
2929
public class ResourceFilter {
3030

3131
/**

0 commit comments

Comments
 (0)