Skip to content

Commit 0a0eb2c

Browse files
committed
Use consistent style for deprecation messages
1 parent 7b2ed22 commit 0a0eb2c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

junit-platform-commons/src/main/java/org/junit/platform/commons/util/ReflectionUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,8 @@ else if (methodPart.endsWith(")")) {
885885
* @param requiredType the required type of the outermost instance; never {@code null}
886886
* @return an {@code Optional} containing the outermost instance; never {@code null}
887887
* but potentially empty
888+
* @deprecated Please discontinue use of this method since it relies on internal
889+
* implementation details of the JDK that may not work in the future.
888890
*/
889891
@API(status = DEPRECATED, since = "1.4")
890892
@Deprecated

junit-platform-engine/src/main/java/org/junit/platform/engine/support/filter/ClasspathScanningSupport.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* Support utility methods for classpath scanning.
2929
*
3030
* @since 1.0
31-
* @deprecated Please use {@link org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver}
31+
* @deprecated Please use {@link org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver} instead.
3232
*/
3333
@Deprecated
3434
@API(status = DEPRECATED, since = "1.5")
@@ -43,7 +43,7 @@ private ClasspathScanningSupport() {
4343
* classpath scanning from an {@link EngineDiscoveryRequest}.
4444
*
4545
* @param request the request to build a predicate from
46-
* @deprecated Please use {@link org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver}
46+
* @deprecated Please use {@link org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver} instead.
4747
*/
4848
@Deprecated
4949
public static Predicate<String> buildClassNamePredicate(EngineDiscoveryRequest request) {
@@ -60,7 +60,7 @@ public static Predicate<String> buildClassNamePredicate(EngineDiscoveryRequest r
6060
*
6161
* @param request the request to build a name predicate from
6262
* @param classPredicate the class predicate
63-
* @deprecated Please use {@link org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver}
63+
* @deprecated Please use {@link org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver} instead.
6464
*/
6565
@Deprecated
6666
public static ClassFilter buildClassFilter(EngineDiscoveryRequest request, Predicate<Class<?>> classPredicate) {

junit-platform-launcher/src/main/java/org/junit/platform/launcher/TestPlan.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ protected TestPlan(boolean containsTests) {
9494
* Add the supplied {@link TestIdentifier} to this test plan.
9595
*
9696
* @param testIdentifier the identifier to add; never {@code null}
97-
* @deprecated without replacement since this method was intended to be internal.
97+
* @deprecated Please discontinue use of this method. A future version of the
98+
* JUnit Platform will ignore this call and eventually even throw an exception.
9899
*/
99100
@Deprecated
100101
@API(status = DEPRECATED, since = "1.4")

0 commit comments

Comments
 (0)