50
50
* @return {@link OptBoolean#FALSE} to throw an exception; {@link OptBoolean#TRUE}
51
51
* to avoid throwing it; or {@link OptBoolean#DEFAULT} to use configure defaults
52
52
* (which are same as {@link OptBoolean#FALSE} for Jackson 2.x)
53
- *
54
- * @since 2.20
55
53
*/
56
54
public OptBoolean optional () default OptBoolean .DEFAULT ;
57
55
58
56
/*
59
- /**********************************************************
60
- /* Value class used to enclose information, allow for
61
- /* merging of layered configuration settings, and eventually
62
- /* decouple higher level handling from Annotation types
63
- /* (which can not be implemented etc.)
64
- /**********************************************************
57
+ /**********************************************************************
58
+ /* Value class used to enclose information, allow for merging of layered
59
+ /* configuration settings, and eventually decouple higher level handling
60
+ /* from Annotation types (which can not be implemented etc.)
61
+ /**********************************************************************
65
62
*/
66
63
67
64
/**
@@ -98,23 +95,15 @@ public Class<JacksonInject> valueFor() {
98
95
}
99
96
100
97
/*
101
- /**********************************************************
98
+ /******************************************************************
102
99
/* Factory methods
103
- /**********************************************************
100
+ /******************************************************************
104
101
*/
105
102
106
103
public static Value empty () {
107
104
return EMPTY ;
108
105
}
109
106
110
- @ Deprecated //since 2.20
111
- public static Value construct (Object id , Boolean useInput ) {
112
- return construct (id , useInput , null );
113
- }
114
-
115
- /**
116
- * @since 2.20
117
- */
118
107
public static Value construct (Object id , Boolean useInput , Boolean optional ) {
119
108
if ("" .equals (id )) {
120
109
id = null ;
@@ -137,9 +126,9 @@ public static Value forId(Object id) {
137
126
}
138
127
139
128
/*
140
- /**********************************************************
129
+ /******************************************************************
141
130
/* Mutant factory methods
142
- /**********************************************************
131
+ /******************************************************************
143
132
*/
144
133
145
134
public Value withId (Object id ) {
@@ -176,9 +165,9 @@ public Value withOptional(Boolean optional) {
176
165
}
177
166
178
167
/*
179
- /**********************************************************
168
+ /******************************************************************
180
169
/* Accessors
181
- /**********************************************************
170
+ /******************************************************************
182
171
*/
183
172
184
173
public Object getId () { return _id ; }
@@ -194,9 +183,9 @@ public boolean willUseInput(boolean defaultSetting) {
194
183
}
195
184
196
185
/*
197
- /**********************************************************
198
- /* Std method overrides
199
- /**********************************************************
186
+ /******************************************************************
187
+ /* Standard method overrides
188
+ /******************************************************************
200
189
*/
201
190
202
191
@ Override
@@ -238,9 +227,9 @@ public boolean equals(Object o) {
238
227
}
239
228
240
229
/*
241
- /**********************************************************
230
+ /******************************************************************
242
231
/* Other
243
- /**********************************************************
232
+ /******************************************************************
244
233
*/
245
234
246
235
private static boolean _empty (Object id , Boolean useInput , Boolean optional ) {
0 commit comments