Skip to content

Commit

Permalink
Add '@API' annotation.
Browse files Browse the repository at this point in the history
Issue: #2677
  • Loading branch information
Vladimir Dmitrienko committed Jul 22, 2024
1 parent f176c3b commit b55a937
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@

package org.junit.jupiter.api.parallel;

import static org.apiguardian.api.API.Status.STABLE;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.apiguardian.api.API;

@API(status = STABLE, since = "?")
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.METHOD })
@Inherited
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@

package org.junit.jupiter.api.parallel;

import static org.apiguardian.api.API.Status.STABLE;

import java.lang.reflect.Method;
import java.util.Collections;
import java.util.Set;

import org.apiguardian.api.API;

@API(status = STABLE, since = "?")
public interface ExclusiveResourcesProvider {
default Set<ExclusiveResource> provideForClass(Class<?> testClass) {
return Collections.emptySet();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@
package org.junit.jupiter.api.parallel;

import static java.util.stream.Collectors.toSet;
import static org.apiguardian.api.API.Status.STABLE;

import java.lang.reflect.Method;
import java.util.Set;
import java.util.stream.Stream;

import org.apiguardian.api.API;

@API(status = STABLE, since = "?")
public final class MyExclusiveResourcesProvider implements ExclusiveResourcesProvider {

public MyExclusiveResourcesProvider() {
Expand Down

0 comments on commit b55a937

Please sign in to comment.