File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed
jsonb/src/main/java/io/avaje/jsonb Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 1
1
package io .avaje .jsonb ;
2
2
3
3
import static java .lang .annotation .ElementType .TYPE ;
4
+ import static java .lang .annotation .RetentionPolicy .SOURCE ;
4
5
6
+ import java .lang .annotation .Retention ;
5
7
import java .lang .annotation .Target ;
6
8
7
9
57
59
* }</pre>
58
60
*/
59
61
@ Target (TYPE )
62
+ @ Retention (SOURCE )
60
63
public @interface CustomAdapter {
61
64
62
65
/**
Original file line number Diff line number Diff line change 10
10
import static java .lang .annotation .ElementType .TYPE ;
11
11
import static java .lang .annotation .RetentionPolicy .CLASS ;
12
12
import static java .lang .annotation .RetentionPolicy .RUNTIME ;
13
+ import static java .lang .annotation .RetentionPolicy .SOURCE ;
13
14
14
15
import java .lang .annotation .Repeatable ;
15
16
import java .lang .annotation .Retention ;
36
37
*
37
38
* }</pre>
38
39
*/
39
- @ Retention (CLASS )
40
40
@ Target (TYPE )
41
+ @ Retention (SOURCE )
41
42
public @interface Json {
42
43
43
44
/**
74
75
*
75
76
* }</pre>
76
77
*/
77
- @ Retention (CLASS )
78
+ @ Retention (SOURCE )
78
79
@ Repeatable (List .class )
79
80
@ Target ({TYPE , PACKAGE , MODULE })
80
81
@interface Import {
96
97
/**
97
98
* The list of types to Import for Jsonb.
98
99
*/
99
- @ Retention (CLASS )
100
+ @ Retention (SOURCE )
100
101
@ Target ({TYPE , PACKAGE , MODULE })
101
102
@interface List {
102
103
114
115
*
115
116
* }</pre>
116
117
*/
117
- @ Retention (CLASS )
118
+ @ Retention (SOURCE )
118
119
@ Target ({FIELD , METHOD })
119
120
@interface Property {
120
121
134
135
*
135
136
* }</pre>
136
137
*/
137
- @ Retention (CLASS )
138
+ @ Retention (SOURCE )
138
139
@ Target ({FIELD , PARAMETER })
139
140
@interface Alias {
140
141
152
153
* We can explicitly use {@code serialize=true} to include the property in
153
154
* serialization but not deserialization.
154
155
*/
155
- @ Retention (CLASS )
156
156
@ Target (FIELD )
157
+ @ Retention (SOURCE )
157
158
@interface Ignore {
158
159
159
160
/**
180
181
*
181
182
* }</pre>
182
183
*/
183
- @ Retention (CLASS )
184
+ @ Retention (SOURCE )
184
185
@ Target ({FIELD , METHOD , PARAMETER })
185
186
@interface Unmapped {
186
187
213
214
*
214
215
* }</pre>
215
216
*/
216
- @ Retention (RUNTIME )
217
217
@ Target (METHOD )
218
+ @ Retention (SOURCE )
218
219
@interface Value {}
219
220
220
221
/**
236
237
*
237
238
* }</pre>
238
239
*/
239
- @ Retention (CLASS )
240
240
@ Target (TYPE )
241
+ @ Retention (SOURCE )
241
242
@ Repeatable (SubTypes .class )
242
243
@interface SubType {
243
244
258
259
* Container of all the concrete SubType's that an interface type or abstract
259
260
* type can be represented as.
260
261
*/
261
- @ Retention (CLASS )
262
262
@ Target (TYPE )
263
+ @ Retention (SOURCE )
263
264
@interface SubTypes {
264
265
265
266
SubType [] value ();
268
269
/**
269
270
* Marks a String field as containing raw JSON content.
270
271
*/
271
- @ Retention (CLASS )
272
+ @ Retention (SOURCE )
272
273
@ Target ({FIELD , METHOD })
273
274
@interface Raw {
274
275
294
295
*
295
296
* }</pre>
296
297
*/
297
- @ Retention (CLASS )
298
298
@ Target (TYPE )
299
+ @ Retention (SOURCE )
299
300
@interface MixIn {
300
301
/** The concrete type to mix. */
301
302
Class <?> value ();
335
336
*
336
337
* }</pre>
337
338
*/
338
- @ Retention (CLASS )
339
+ @ Retention (SOURCE )
339
340
@ Target ({CONSTRUCTOR , METHOD })
340
341
@interface Creator {}
341
342
You can’t perform that action at this time.
0 commit comments