Skip to content

Commit

Permalink
Simplify RuntimeHintsUtilsTests
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Jul 6, 2022
1 parent a5ceb96 commit a122a0e
Showing 1 changed file with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@

package org.springframework.aot.hint.support;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.function.Consumer;

import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -102,21 +99,7 @@ private Consumer<JdkProxyHint> annotationProxy(Class<?> type) {
}


@SampleInvoker
static class SampleInvokerClass {
}

@RetryInvoker
static class RetryInvokerClass {
}

@RetryWithEnabledFlagInvoker
static class RetryWithEnabledFlagInvokerClass {
}

@Target({ ElementType.TYPE, ElementType.ANNOTATION_TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@interface LocalMapping {

@AliasFor("retries")
Expand All @@ -128,18 +111,14 @@ static class RetryWithEnabledFlagInvokerClass {
}


@Target({ ElementType.TYPE, ElementType.ANNOTATION_TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@interface SampleInvoker {

int retries() default 0;

}

@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@SampleInvoker
@interface RetryInvoker {

Expand All @@ -148,9 +127,7 @@ static class RetryWithEnabledFlagInvokerClass {

}

@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@RetryInvoker
@interface RetryWithEnabledFlagInvoker {

Expand Down

0 comments on commit a122a0e

Please sign in to comment.