@@ -231,9 +231,7 @@ public String[] findPropertiesToIgnore(Annotated ac) {
231
231
/**
232
232
* Method for checking whether an annotation indicates that all unknown properties
233
233
*/
234
- public Boolean findIgnoreUnknownProperties (AnnotatedClass ac ) {
235
- return null ;
236
- }
234
+ public Boolean findIgnoreUnknownProperties (AnnotatedClass ac ) { return null ; }
237
235
238
236
/**
239
237
* Method for checking whether properties that have specified type
@@ -246,17 +244,13 @@ public Boolean findIgnoreUnknownProperties(AnnotatedClass ac) {
246
244
* Boolean.FALSE if they are not to be ignored, null for default
247
245
* handling (which is 'do not ignore')
248
246
*/
249
- public Boolean isIgnorableType (AnnotatedClass ac ) {
250
- return null ;
251
- }
247
+ public Boolean isIgnorableType (AnnotatedClass ac ) { return null ; }
252
248
253
249
/**
254
250
* @deprecated Since 2.3: use the one that takes generic {@link Annotated}
255
251
*/
256
252
@ Deprecated
257
- public Object findFilterId (AnnotatedClass ac ) {
258
- return findFilterId ((Annotated ) ac );
259
- }
253
+ public Object findFilterId (AnnotatedClass ac ) { return findFilterId ((Annotated ) ac ); }
260
254
261
255
/**
262
256
* Method for finding if annotated class has associated filter; and if so,
@@ -265,9 +259,7 @@ public Object findFilterId(AnnotatedClass ac) {
265
259
* @return Id of the filter to use for filtering properties of annotated
266
260
* class, if any; or null if none found.
267
261
*/
268
- public Object findFilterId (Annotated ann ) {
269
- return null ;
270
- }
262
+ public Object findFilterId (Annotated ann ) { return null ; }
271
263
272
264
/**
273
265
* Method for finding {@link PropertyNamingStrategy} for given
@@ -280,9 +272,7 @@ public Object findFilterId(Annotated ann) {
280
272
*
281
273
* @since 2.1
282
274
*/
283
- public Object findNamingStrategy (AnnotatedClass ac ) {
284
- return null ;
285
- }
275
+ public Object findNamingStrategy (AnnotatedClass ac ) { return null ; }
286
276
287
277
/*
288
278
/**********************************************************
@@ -297,8 +287,7 @@ public Object findNamingStrategy(AnnotatedClass ac) {
297
287
* (if no annotations are found), or build and return a derived instance (using
298
288
* checker's build methods).
299
289
*/
300
- public VisibilityChecker <?> findAutoDetectVisibility (AnnotatedClass ac ,
301
- VisibilityChecker <?> checker ) {
290
+ public VisibilityChecker <?> findAutoDetectVisibility (AnnotatedClass ac , VisibilityChecker <?> checker ) {
302
291
return checker ;
303
292
}
304
293
@@ -378,18 +367,14 @@ public TypeResolverBuilder<?> findPropertyContentTypeResolver(MapperConfig<?> co
378
367
*
379
368
* @param a Annotated entity (class, field/method) to check for annotations
380
369
*/
381
- public List <NamedType > findSubtypes (Annotated a ) {
382
- return null ;
383
- }
370
+ public List <NamedType > findSubtypes (Annotated a ) { return null ; }
384
371
385
372
/**
386
373
* Method for checking if specified type has explicit name.
387
374
*
388
375
* @param ac Class to check for type name annotations
389
376
*/
390
- public String findTypeName (AnnotatedClass ac ) {
391
- return null ;
392
- }
377
+ public String findTypeName (AnnotatedClass ac ) { return null ; }
393
378
394
379
/*
395
380
/**********************************************************
@@ -401,9 +386,7 @@ public String findTypeName(AnnotatedClass ac) {
401
386
* Method for checking if given member indicates that it is part
402
387
* of a reference (parent/child).
403
388
*/
404
- public ReferenceProperty findReferenceType (AnnotatedMember member ) {
405
- return null ;
406
- }
389
+ public ReferenceProperty findReferenceType (AnnotatedMember member ) { return null ; }
407
390
408
391
/**
409
392
* Method called to check whether given property is marked to be "unwrapped"
@@ -413,9 +396,7 @@ public ReferenceProperty findReferenceType(AnnotatedMember member) {
413
396
* should be done, or null if not -- note that transformation may simply
414
397
* be identity transformation (no changes).
415
398
*/
416
- public NameTransformer findUnwrappingNameTransformer (AnnotatedMember member ) {
417
- return null ;
418
- }
399
+ public NameTransformer findUnwrappingNameTransformer (AnnotatedMember member ) { return null ; }
419
400
420
401
/**
421
402
* Method called to check whether given property is marked to
@@ -424,9 +405,7 @@ public NameTransformer findUnwrappingNameTransformer(AnnotatedMember member) {
424
405
* annotations from multiple accessors (getters, setters, fields,
425
406
* constructor parameters).
426
407
*/
427
- public boolean hasIgnoreMarker (AnnotatedMember m ) {
428
- return false ;
429
- }
408
+ public boolean hasIgnoreMarker (AnnotatedMember m ) { return false ; }
430
409
431
410
/**
432
411
* Method called to find out whether given member expectes a value
@@ -441,9 +420,7 @@ public boolean hasIgnoreMarker(AnnotatedMember m) {
441
420
* @return Identifier of value to inject, if any; null if no injection
442
421
* indicator is found
443
422
*/
444
- public Object findInjectableValueId (AnnotatedMember m ) {
445
- return null ;
446
- }
423
+ public Object findInjectableValueId (AnnotatedMember m ) { return null ; }
447
424
448
425
/**
449
426
* Method that can be called to check whether this member has
@@ -452,9 +429,7 @@ public Object findInjectableValueId(AnnotatedMember m) {
452
429
*
453
430
* @since 2.0
454
431
*/
455
- public Boolean hasRequiredMarker (AnnotatedMember m ) {
456
- return null ;
457
- }
432
+ public Boolean hasRequiredMarker (AnnotatedMember m ) { return null ; }
458
433
459
434
/**
460
435
* Method for checking if annotated property (represented by a field or
@@ -469,9 +444,7 @@ public Boolean hasRequiredMarker(AnnotatedMember m) {
469
444
* @return Array of views (represented by classes) that the property is included in;
470
445
* if null, always included (same as returning array containing <code>Object.class</code>)
471
446
*/
472
- public Class <?>[] findViews (Annotated a ) {
473
- return null ;
474
- }
447
+ public Class <?>[] findViews (Annotated a ) { return null ; }
475
448
476
449
/**
477
450
* Method for finding format annotations for property or class.
@@ -481,21 +454,14 @@ public Class<?>[] findViews(Annotated a) {
481
454
*
482
455
* @since 2.1
483
456
*/
484
- public JsonFormat .Value findFormat (Annotated memberOrClass ) {
485
- return null ;
486
- }
457
+ public JsonFormat .Value findFormat (Annotated memberOrClass ) { return null ; }
487
458
488
459
/**
489
460
* Method for checking whether given accessor claims to represent
490
461
* type id: if so, its value may be used as an override,
491
462
* instead of generated type id.
492
- *
493
- * @since 2.0
494
463
*/
495
- public Boolean isTypeId (AnnotatedMember member ) {
496
- return null ;
497
- }
498
-
464
+ public Boolean isTypeId (AnnotatedMember member ) { return null ; }
499
465
500
466
/**
501
467
* Method used to check if specified property has annotation that indicates
@@ -508,9 +474,7 @@ public Boolean isTypeId(AnnotatedMember member) {
508
474
*
509
475
* @since 2.1
510
476
*/
511
- public PropertyName findWrapperName (Annotated ann ) {
512
- return null ;
513
- }
477
+ public PropertyName findWrapperName (Annotated ann ) { return null ; }
514
478
515
479
/**
516
480
* Method used to check whether specified property member (accessor
@@ -522,10 +486,21 @@ public PropertyName findWrapperName(Annotated ann) {
522
486
*
523
487
* @since 2.3
524
488
*/
525
- public String findPropertyDescription (Annotated ann ) {
526
- return null ;
527
- }
528
-
489
+ public String findPropertyDescription (Annotated ann ) { return null ; }
490
+
491
+ /**
492
+ * Method used to check whether specified property member (accessor
493
+ * or mutator) defines numeric index, and if so, what is the index value.
494
+ * Possible use cases for index values included use by underlying data format
495
+ * (some binary formats mandate use of index instead of name) and ordering
496
+ * of properties (for documentation, or during serialization).
497
+ *
498
+ * @since 2.4
499
+ *
500
+ * @return Explicitly specified index for the property, if any
501
+ */
502
+ public Integer findPropertyIndex (Annotated ann ) { return null ; }
503
+
529
504
/*
530
505
/**********************************************************
531
506
/* Serialization: general annotations
0 commit comments