16
16
17
17
package org .springframework .aot .hint .support ;
18
18
19
- import java .lang .annotation .Documented ;
20
- import java .lang .annotation .ElementType ;
21
19
import java .lang .annotation .Retention ;
22
20
import java .lang .annotation .RetentionPolicy ;
23
- import java .lang .annotation .Target ;
24
21
import java .util .function .Consumer ;
25
22
26
23
import org .junit .jupiter .api .Test ;
@@ -102,21 +99,7 @@ private Consumer<JdkProxyHint> annotationProxy(Class<?> type) {
102
99
}
103
100
104
101
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 })
118
102
@ Retention (RetentionPolicy .RUNTIME )
119
- @ Documented
120
103
@interface LocalMapping {
121
104
122
105
@ AliasFor ("retries" )
@@ -128,18 +111,14 @@ static class RetryWithEnabledFlagInvokerClass {
128
111
}
129
112
130
113
131
- @ Target ({ ElementType .TYPE , ElementType .ANNOTATION_TYPE })
132
114
@ Retention (RetentionPolicy .RUNTIME )
133
- @ Documented
134
115
@interface SampleInvoker {
135
116
136
117
int retries () default 0 ;
137
118
138
119
}
139
120
140
- @ Target ({ ElementType .TYPE })
141
121
@ Retention (RetentionPolicy .RUNTIME )
142
- @ Documented
143
122
@ SampleInvoker
144
123
@interface RetryInvoker {
145
124
@@ -148,9 +127,7 @@ static class RetryWithEnabledFlagInvokerClass {
148
127
149
128
}
150
129
151
- @ Target ({ ElementType .TYPE })
152
130
@ Retention (RetentionPolicy .RUNTIME )
153
- @ Documented
154
131
@ RetryInvoker
155
132
@interface RetryWithEnabledFlagInvoker {
156
133
0 commit comments