Skip to content

Commit a122a0e

Browse files
committedJul 6, 2022
Simplify RuntimeHintsUtilsTests
1 parent a5ceb96 commit a122a0e

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed
 

‎spring-core/src/test/java/org/springframework/aot/hint/support/RuntimeHintsUtilsTests.java

-23
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@
1616

1717
package org.springframework.aot.hint.support;
1818

19-
import java.lang.annotation.Documented;
20-
import java.lang.annotation.ElementType;
2119
import java.lang.annotation.Retention;
2220
import java.lang.annotation.RetentionPolicy;
23-
import java.lang.annotation.Target;
2421
import java.util.function.Consumer;
2522

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

104101

105-
@SampleInvoker
106-
static class SampleInvokerClass {
107-
}
108-
109-
@RetryInvoker
110-
static class RetryInvokerClass {
111-
}
112-
113-
@RetryWithEnabledFlagInvoker
114-
static class RetryWithEnabledFlagInvokerClass {
115-
}
116-
117-
@Target({ ElementType.TYPE, ElementType.ANNOTATION_TYPE })
118102
@Retention(RetentionPolicy.RUNTIME)
119-
@Documented
120103
@interface LocalMapping {
121104

122105
@AliasFor("retries")
@@ -128,18 +111,14 @@ static class RetryWithEnabledFlagInvokerClass {
128111
}
129112

130113

131-
@Target({ ElementType.TYPE, ElementType.ANNOTATION_TYPE })
132114
@Retention(RetentionPolicy.RUNTIME)
133-
@Documented
134115
@interface SampleInvoker {
135116

136117
int retries() default 0;
137118

138119
}
139120

140-
@Target({ ElementType.TYPE })
141121
@Retention(RetentionPolicy.RUNTIME)
142-
@Documented
143122
@SampleInvoker
144123
@interface RetryInvoker {
145124

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

149128
}
150129

151-
@Target({ ElementType.TYPE })
152130
@Retention(RetentionPolicy.RUNTIME)
153-
@Documented
154131
@RetryInvoker
155132
@interface RetryWithEnabledFlagInvoker {
156133

0 commit comments

Comments
 (0)