From d583ab0ed06c26fe5e2a9d2def6cae3848d09f74 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Sun, 19 Jan 2025 22:53:06 +0100 Subject: [PATCH] Fix Javadoc errors --- .../jupiter/api/parallel/ResourceLocksProvider.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 be30638bb43d..d94024d99f3b 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 @@ -28,7 +28,7 @@ *

Each shared resource is represented by an instance of {@link Lock}. * *

Adding shared resources via this API has the same semantics as declaring - * them declaratively via {@link ResouceLock @ResourceLock(value, mode)}, but for + * them declaratively via {@link ResourceLock @ResourceLock(value, mode)}, but for * some use cases the programmatic approach may be more flexible and less verbose. * *

Implementations must provide a no-args constructor. @@ -77,7 +77,7 @@ default Set provideForClass(Class testClass) { * * @param testClass a nested test class for which to add shared resources * @return a set of {@link Lock}; may be empty - * @see Nested + * @see org.junit.jupiter.api.Nested @Nested */ default Set provideForNestedClass(Class testClass) { return emptySet(); @@ -97,10 +97,11 @@ default Set provideForNestedClass(Class testClass) { * has the same semantics as annotating a test method * with analogous {@code @ResourceLock(value, mode)}. * - * @param testClass the test class or {@code @Nested} test class that contains - * the {@code testMethod} + * @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 * @return a set of {@link Lock}; may be empty + * @see org.junit.jupiter.api.Nested @Nested */ default Set provideForMethod(Class testClass, Method testMethod) { return emptySet();