Skip to content

Commit

Permalink
add @API to annotation classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimesseddyq committed Jun 24, 2023
1 parent a92a1f6 commit 9335b31
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.junit.jupiter.api;

import org.apiguardian.api.API;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
Expand Down Expand Up @@ -30,6 +32,7 @@
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@API(status = API.Status.EXPERIMENTAL,since = "5.9")
public @interface AutoClose {
/**
* Specifies the name of the method to invoke for closing the resource.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package org.junit.jupiter.api;
import org.apiguardian.api.API;
import org.junit.jupiter.api.AutoClose;

import java.io.Closeable;
Expand Down Expand Up @@ -33,6 +34,8 @@
* @see java.lang.reflect.Field
* @see java.lang.reflect.Method
*/
@API(status = API.Status.EXPERIMENTAL,since = "5.9")

public class AutoCloseUtils {
private AutoCloseUtils() {
// Private constructor to prevent instantiation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package org.junit.jupiter.api.extension;
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;
Expand All @@ -23,6 +24,8 @@
* @see org.junit.jupiter.api.AutoClose
* @see AutoCloseUtils#closeResources(Object)
*/
@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.
Expand Down

0 comments on commit 9335b31

Please sign in to comment.