diff --git a/junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/ResourceLocksProvider.java b/junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/ResourceLocksProvider.java index 63463d65a415..bb2cc2c2c5fb 100644 --- a/junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/ResourceLocksProvider.java +++ b/junit-jupiter-api/src/main/java/org/junit/jupiter/api/parallel/ResourceLocksProvider.java @@ -35,6 +35,8 @@ * but for some cases may be a more flexible and less verbose alternative * since it allows to add resources programmatically. * + *

Implementations must provide a no-args constructor. + * * @since 5.12 * @see ResourceLock#providers() * @see Resources @@ -74,7 +76,7 @@ default Set provideForClass(Class testClass) { * * @param testClass a nested test class to add shared resources * @return a set of {@link Lock}; may be empty - * @see Nested + * @see Nested */ default Set provideForNestedClass(Class testClass) { return emptySet();