@@ -268,6 +268,9 @@ public PropertyName findRootName(AnnotatedClass ac) {
268
268
* @param config Configuration settings in effect (for serialization or deserialization)
269
269
* @param ann Annotated entity (Class, Accessor) to introspect
270
270
*
271
+ * @return Property ignoral settings to use;
272
+ * {@code JsonIgnoreProperties.Value.empty()} for defaults (should not return {@code null})
273
+ *
271
274
* @since 2.12 (to replace {@code findPropertyIgnorals()})
272
275
*/
273
276
public JsonIgnoreProperties .Value findPropertyIgnoralByName (MapperConfig <?> config , Annotated ann )
@@ -285,6 +288,9 @@ public JsonIgnoreProperties.Value findPropertyIgnoralByName(MapperConfig<?> conf
285
288
* @param config Configuration settings in effect (for serialization or deserialization)
286
289
* @param ann Annotated entity (Class, Accessor) to introspect
287
290
*
291
+ * @return Property inclusion settings to use;
292
+ * {@code JsonIncludeProperties.Value.all()} for defaults (should not return {@code null})
293
+ *
288
294
* @since 2.12
289
295
*/
290
296
public JsonIncludeProperties .Value findPropertyInclusionByName (MapperConfig <?> config , Annotated ann ) {
@@ -362,8 +368,13 @@ public String[] findPropertiesToIgnore(Annotated ac, boolean forSerialization) {
362
368
public Boolean findIgnoreUnknownProperties (AnnotatedClass ac ) { return null ; }
363
369
364
370
/**
371
+ * @param ac Annotated class to introspect
372
+ *
365
373
* @since 2.8
366
374
* @deprecated 2.12, use {@link #findPropertyIgnoralByName} instead.
375
+ *
376
+ * @return Property ignoral settings to use;
377
+ * {@code JsonIgnoreProperties.Value.empty()} for defaults (should not return {@code null})
367
378
*/
368
379
@ Deprecated // since 2.12
369
380
public JsonIgnoreProperties .Value findPropertyIgnorals (Annotated ac ) {
@@ -382,8 +393,14 @@ public JsonIgnoreProperties.Value findPropertyIgnorals(Annotated ac) {
382
393
* A baseline checker is given, and introspector is to either return it as is
383
394
* (if no annotations are found), or build and return a derived instance (using
384
395
* checker's build methods).
396
+ *
397
+ * @param ac Annotated class to introspect
398
+ * @param checker Default visibility settings in effect before any override
399
+ *
400
+ * @return Visibility settings after possible annotation-based overrides
385
401
*/
386
- public VisibilityChecker <?> findAutoDetectVisibility (AnnotatedClass ac , VisibilityChecker <?> checker ) {
402
+ public VisibilityChecker <?> findAutoDetectVisibility (AnnotatedClass ac ,
403
+ VisibilityChecker <?> checker ) {
387
404
return checker ;
388
405
}
389
406
@@ -462,22 +479,31 @@ public TypeResolverBuilder<?> findPropertyContentTypeResolver(MapperConfig<?> co
462
479
* has to do it if/as necessary)
463
480
*
464
481
* @param a Annotated entity (class, field/method) to check for annotations
482
+ *
483
+ * @return List of subtype definitions found if any; {@code null} if none
465
484
*/
466
485
public List <NamedType > findSubtypes (Annotated a ) { return null ; }
467
486
468
487
/**
469
488
* Method for checking if specified type has explicit name.
470
- *
489
+ *
471
490
* @param ac Class to check for type name annotations
491
+ *
492
+ * @return Explicit type name (aka Type Id) found, if any; {@code null} if none
472
493
*/
473
494
public String findTypeName (AnnotatedClass ac ) { return null ; }
474
495
475
496
/**
476
497
* Method for checking whether given accessor claims to represent
477
498
* type id: if so, its value may be used as an override,
478
499
* instead of generated type id.
500
+ *
501
+ * @param am Annotated accessor (field/method/constructor parameter) to check for annotations
502
+ *
503
+ * @return Boolean to indicate whether member is a type id or not, if annotation
504
+ * found; {@code null} if no information found.
479
505
*/
480
- public Boolean isTypeId (AnnotatedMember member ) { return null ; }
506
+ public Boolean isTypeId (AnnotatedMember am ) { return null ; }
481
507
482
508
/*
483
509
/**********************************************************
@@ -1295,6 +1321,10 @@ public Class<?> findDeserializationContentType(Annotated ann, JavaType baseConte
1295
1321
* instantiator, or class of instantiator to create.
1296
1322
*
1297
1323
* @param ac Annotated class to introspect
1324
+ *
1325
+ * @return Either {@link ValueInstantiator} instance to use, or
1326
+ * {@link Class} of one to create; or {@code null} if no annotations
1327
+ * found to indicate custom value instantiator.
1298
1328
*/
1299
1329
public Object findValueInstantiator (AnnotatedClass ac ) {
1300
1330
return null ;
@@ -1312,6 +1342,8 @@ public Object findValueInstantiator(AnnotatedClass ac) {
1312
1342
* to be created for each deserialization call.
1313
1343
*
1314
1344
* @param ac Annotated class to introspect
1345
+ *
1346
+ * @return Builder class to use, if annotation found; {@code null} if not.
1315
1347
*
1316
1348
* @since 2.0
1317
1349
*/
@@ -1322,6 +1354,8 @@ public Class<?> findPOJOBuilder(AnnotatedClass ac) {
1322
1354
/**
1323
1355
* @param ac Annotated class to introspect
1324
1356
*
1357
+ * @return Builder settings to use, if any found; {@code null} if not.
1358
+ *
1325
1359
* @since 2.0
1326
1360
*/
1327
1361
public JsonPOJOBuilder .Value findPOJOBuilderConfig (AnnotatedClass ac ) {
@@ -1344,7 +1378,7 @@ public JsonPOJOBuilder.Value findPOJOBuilderConfig(AnnotatedClass ac) {
1344
1378
*
1345
1379
* @param ann Annotated entity to check
1346
1380
*
1347
- * @return Name to use if found; null if not.
1381
+ * @return Name to use if found; {@code null} if not.
1348
1382
*
1349
1383
* @since 2.1
1350
1384
*/
@@ -1360,8 +1394,8 @@ public PropertyName findNameForDeserialization(Annotated ann) {
1360
1394
*
1361
1395
* @param ann Annotated entity to check
1362
1396
*
1363
- * @return True if such annotation is found (and is not disabled),
1364
- * false otherwise
1397
+ * @return {@code Boolean.TRUE} or {@code Boolean.FALSE} if explicit
1398
+ * "any setter" marker found; {@code null} otherwise.
1365
1399
*
1366
1400
* @since 2.9
1367
1401
*/
@@ -1375,6 +1409,9 @@ public Boolean hasAnySetter(Annotated ann) {
1375
1409
*
1376
1410
* @param ann Annotated entity to check
1377
1411
*
1412
+ * @return Setter info value found, if any;
1413
+ * {@code JsonSetter.Value.empty()} if none (should not return {@code null})
1414
+ *
1378
1415
* @since 2.9
1379
1416
*/
1380
1417
public JsonSetter .Value findSetterInfo (Annotated ann ) {
@@ -1386,6 +1423,9 @@ public JsonSetter.Value findSetterInfo(Annotated ann) {
1386
1423
*
1387
1424
* @param ann Annotated entity to check
1388
1425
*
1426
+ * @return {@code Boolean.TRUE} or {@code Boolean.FALSE} if explicit
1427
+ * merge enable/disable found; {@code null} otherwise.
1428
+ *
1389
1429
* @since 2.9
1390
1430
*/
1391
1431
public Boolean findMergeInfo (Annotated ann ) {
@@ -1405,6 +1445,8 @@ public Boolean findMergeInfo(Annotated ann) {
1405
1445
* @param config Configuration settings in effect (for serialization or deserialization)
1406
1446
* @param ann Annotated accessor (usually constructor or static method) to check
1407
1447
*
1448
+ * @return Creator mode found, if any; {@code null} if none
1449
+ *
1408
1450
* @since 2.9
1409
1451
*/
1410
1452
public JsonCreator .Mode findCreatorAnnotation (MapperConfig <?> config , Annotated ann ) {
@@ -1446,6 +1488,8 @@ public boolean hasCreatorAnnotation(Annotated ann) {
1446
1488
* creator with implicit but no explicit name for the argument).
1447
1489
*
1448
1490
* @param ann Annotated entity to check
1491
+ *
1492
+ * @return Creator mode found, if any; {@code null} if none
1449
1493
*
1450
1494
* @since 2.5
1451
1495
* @deprecated Since 2.9 use {@link #findCreatorAnnotation} instead.
@@ -1486,6 +1530,7 @@ public boolean hasAnySetterAnnotation(AnnotatedMethod am) {
1486
1530
* return annotated.getAnnotation(annoClass);
1487
1531
*</code>
1488
1532
*
1533
+ * @param <A> Annotation type being checked
1489
1534
* @param ann Annotated entity to check for specified annotation
1490
1535
* @param annoClass Type of annotation to find
1491
1536
*
0 commit comments