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 21d75579d728..2cffc5d6101f 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 @@ -82,8 +82,8 @@ default Set provideForClass(Class testClass) { * class is inherited from a superclass. * * @param enclosingInstanceTypes the runtime types of the enclosing - * instances of {@code clazz}, ordered from outermost to innermost, - * excluding {@code class}; never {@code null} + * instances for the test class, ordered from outermost to innermost, + * excluding {@code testClass}; never {@code null} * @param testClass a nested test class for which to add shared resources * @return a set of {@link Lock}; may be empty * @see org.junit.jupiter.api.Nested @Nested @@ -115,8 +115,8 @@ default Set provideForNestedClass(List> enclosingInstanceTypes, C * method is inherited from a superclass. * * @param enclosingInstanceTypes the runtime types of the enclosing - * instances of {@code clazz}, ordered from outermost to innermost, - * excluding {@code class}; never {@code null} + * instances for the test class, ordered from outermost to innermost, + * excluding {@code testClass}; never {@code null} * @param testClass the test class or {@link org.junit.jupiter.api.Nested @Nested} * test class that contains the {@code testMethod} * @param testMethod a test method for which to add shared resources