Skip to content

Commit 426a065

Browse files
committed
Rephrase to use "Constant" instead of "Value"
When referring to the instances of JsonInclude.Value, to avoid too much overloading with "values" referring to values being serialized to JSON. See also discussion: #314 (comment)
1 parent ab7a5cf commit 426a065

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/main/java/com/fasterxml/jackson/annotation/JsonInclude.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -269,35 +269,35 @@ public static class Value
269269
private static final long serialVersionUID = 1L;
270270

271271
/**
272-
* Value that indicates that property is to be always included,
272+
* Constant that indicates that property is to be always included,
273273
* independent of value of the property.
274274
* <p>
275275
* This will specify the same setting for including a value both
276276
* on <b>Java object level</b> as well as when <b>contained</b>
277277
* in an object reference (see {@link JsonInclude} for further
278-
* details on this distinction)
278+
* details on this distinction).
279279
*
280280
* @since 2.21
281281
*/
282282
public final static Value ALL_ALWAYS = Value
283283
.construct(Include.ALWAYS, Include.ALWAYS);
284284

285285
/**
286-
* Value that indicates that only properties with non-null
286+
* Constant that indicates that only properties with non-null
287287
* values are to be included.
288288
* <p>
289289
* This will specify the same setting for including a value both
290290
* on <b>Java object level</b> as well as when <b>contained</b>
291291
* in an object reference (see {@link JsonInclude} for further
292-
* details on this distinction)
292+
* details on this distinction).
293293
*
294294
* @since 2.21
295295
*/
296296
public final static Value ALL_NON_NULL = Value
297297
.construct(Include.NON_NULL, Include.NON_NULL);
298298

299299
/**
300-
* Value that indicates that properties are included unless their value
300+
* Constant that indicates that properties are included unless their value
301301
* is:
302302
* <ul>
303303
* <li>null</li>
@@ -310,22 +310,22 @@ public static class Value
310310
* This will specify the same setting for including a value both
311311
* on <b>Java object level</b> as well as when <b>contained</b>
312312
* in an object reference (see {@link JsonInclude} for further
313-
* details on this distinction)
313+
* details on this distinction).
314314
*
315315
* @since 2.21
316316
*/
317317
public final static Value ALL_NON_ABSENT = Value
318318
.construct(Include.NON_ABSENT, Include.NON_ABSENT);
319319

320320
/**
321-
* Value that indicates that only properties with null value,
321+
* Constant that indicates that only properties with null value,
322322
* or what is considered empty, are not to be included.
323323
* See {@link Include#NON_EMPTY} for further details.
324324
* <p>
325325
* This will specify the same setting for including a value both
326326
* on <b>Java object level</b> as well as when <b>contained</b>
327327
* in an object reference (see {@link JsonInclude} for further
328-
* details on this distinction)
328+
* details on this distinction).
329329
*
330330
* @since 2.21
331331
*/
@@ -339,7 +339,7 @@ public static class Value
339339
* This will specify the same setting for including a value both
340340
* on <b>Java object level</b> as well as when <b>contained</b>
341341
* in an object reference (see {@link JsonInclude} for further
342-
* details on this distinction)
342+
* details on this distinction).
343343
*
344344
* @since 2.21
345345
*/

0 commit comments

Comments
 (0)