From 5ebc85b3c0c5489734dcdda75f32dccde359ee31 Mon Sep 17 00:00:00 2001 From: armanovxx Date: Sat, 24 Jun 2023 15:58:05 +0200 Subject: [PATCH] adapt to aggregateJavaDocs --- .../jupiter/api/extension/AutoCloseExtension.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/junit-jupiter-api/src/main/java/org/junit/jupiter/api/extension/AutoCloseExtension.java b/junit-jupiter-api/src/main/java/org/junit/jupiter/api/extension/AutoCloseExtension.java index 6a4dbbf133e2..3c79c18cc091 100644 --- a/junit-jupiter-api/src/main/java/org/junit/jupiter/api/extension/AutoCloseExtension.java +++ b/junit-jupiter-api/src/main/java/org/junit/jupiter/api/extension/AutoCloseExtension.java @@ -12,9 +12,6 @@ import org.apiguardian.api.API; import org.junit.jupiter.api.AutoCloseUtils; -import org.junit.jupiter.api.extension.AfterEachCallback; -import org.junit.jupiter.api.extension.ExtensionContext; - /** * The {@code AutoCloseExtension} class is a JUnit 5 extension that automatically closes resources used in tests. * @@ -38,15 +35,20 @@ */ @API(status = API.Status.EXPERIMENTAL, since = "5.9") public class AutoCloseExtension implements AfterEachCallback { + /** - * Invoked after each test execution to close the annotated resources within the test instance. - * - * @throws Exception if an exception occurs during resource cleanup + * Creates a new instance of AutoCloseExtension. */ public AutoCloseExtension() { } + /** + * Invoked after each test execution to close the annotated resources within the test instance. + * + * @param context the extension context for the current test execution + * @throws Exception if an exception occurs during resource cleanup + */ @Override public void afterEach(ExtensionContext context) throws Exception { Object testInstance = context.getRequiredTestInstance();