@@ -1314,7 +1314,7 @@ public JavaType refineDeserializationType(final MapperConfig<?> config,
1314
1314
1315
1315
/*
1316
1316
/**********************************************************
1317
- /* Deserialization: class annotations
1317
+ /* Deserialization: value instantiation, Creators
1318
1318
/**********************************************************
1319
1319
*/
1320
1320
@@ -1365,76 +1365,6 @@ public JsonPOJOBuilder.Value findPOJOBuilderConfig(AnnotatedClass ac) {
1365
1365
return null ;
1366
1366
}
1367
1367
1368
- /*
1369
- /**********************************************************
1370
- /* Deserialization: property annotations
1371
- /**********************************************************
1372
- */
1373
-
1374
- /**
1375
- * Method for checking whether given property accessors (method,
1376
- * field) has an annotation that suggests property name to use
1377
- * for deserialization (reading JSON into POJOs).
1378
- * Should return null if no annotation
1379
- * is found; otherwise a non-null name (possibly
1380
- * {@link PropertyName#USE_DEFAULT}, which means "use default heuristics").
1381
- *
1382
- * @param ann Annotated entity to check
1383
- *
1384
- * @return Name to use if found; {@code null} if not.
1385
- *
1386
- * @since 2.1
1387
- */
1388
- public PropertyName findNameForDeserialization (Annotated ann ) {
1389
- return null ;
1390
- }
1391
-
1392
- /**
1393
- * Method for checking whether given method has an annotation
1394
- * that suggests that the method is to serve as "any setter";
1395
- * method to be used for setting values of any properties for
1396
- * which no dedicated setter method is found.
1397
- *
1398
- * @param ann Annotated entity to check
1399
- *
1400
- * @return {@code Boolean.TRUE} or {@code Boolean.FALSE} if explicit
1401
- * "any setter" marker found; {@code null} otherwise.
1402
- *
1403
- * @since 2.9
1404
- */
1405
- public Boolean hasAnySetter (Annotated ann ) {
1406
- return null ;
1407
- }
1408
-
1409
- /**
1410
- * Method for finding possible settings for property, given annotations
1411
- * on an accessor.
1412
- *
1413
- * @param ann Annotated entity to check
1414
- *
1415
- * @return Setter info value found, if any;
1416
- * {@code JsonSetter.Value.empty()} if none (should not return {@code null})
1417
- *
1418
- * @since 2.9
1419
- */
1420
- public JsonSetter .Value findSetterInfo (Annotated ann ) {
1421
- return JsonSetter .Value .empty ();
1422
- }
1423
-
1424
- /**
1425
- * Method for finding merge settings for property, if any.
1426
- *
1427
- * @param ann Annotated entity to check
1428
- *
1429
- * @return {@code Boolean.TRUE} or {@code Boolean.FALSE} if explicit
1430
- * merge enable/disable found; {@code null} otherwise.
1431
- *
1432
- * @since 2.9
1433
- */
1434
- public Boolean findMergeInfo (Annotated ann ) {
1435
- return null ;
1436
- }
1437
-
1438
1368
/**
1439
1369
* Method called to check whether potential Creator (constructor or static factory
1440
1370
* method) has explicit annotation to indicate it as actual Creator; and if so,
@@ -1504,6 +1434,76 @@ public JsonCreator.Mode findCreatorBinding(Annotated ann) {
1504
1434
return null ;
1505
1435
}
1506
1436
1437
+ /*
1438
+ /**********************************************************
1439
+ /* Deserialization: other property annotations
1440
+ /**********************************************************
1441
+ */
1442
+
1443
+ /**
1444
+ * Method for checking whether given property accessors (method,
1445
+ * field) has an annotation that suggests property name to use
1446
+ * for deserialization (reading JSON into POJOs).
1447
+ * Should return null if no annotation
1448
+ * is found; otherwise a non-null name (possibly
1449
+ * {@link PropertyName#USE_DEFAULT}, which means "use default heuristics").
1450
+ *
1451
+ * @param ann Annotated entity to check
1452
+ *
1453
+ * @return Name to use if found; {@code null} if not.
1454
+ *
1455
+ * @since 2.1
1456
+ */
1457
+ public PropertyName findNameForDeserialization (Annotated ann ) {
1458
+ return null ;
1459
+ }
1460
+
1461
+ /**
1462
+ * Method for checking whether given method has an annotation
1463
+ * that suggests that the method is to serve as "any setter";
1464
+ * method to be used for setting values of any properties for
1465
+ * which no dedicated setter method is found.
1466
+ *
1467
+ * @param ann Annotated entity to check
1468
+ *
1469
+ * @return {@code Boolean.TRUE} or {@code Boolean.FALSE} if explicit
1470
+ * "any setter" marker found; {@code null} otherwise.
1471
+ *
1472
+ * @since 2.9
1473
+ */
1474
+ public Boolean hasAnySetter (Annotated ann ) {
1475
+ return null ;
1476
+ }
1477
+
1478
+ /**
1479
+ * Method for finding possible settings for property, given annotations
1480
+ * on an accessor.
1481
+ *
1482
+ * @param ann Annotated entity to check
1483
+ *
1484
+ * @return Setter info value found, if any;
1485
+ * {@code JsonSetter.Value.empty()} if none (should not return {@code null})
1486
+ *
1487
+ * @since 2.9
1488
+ */
1489
+ public JsonSetter .Value findSetterInfo (Annotated ann ) {
1490
+ return JsonSetter .Value .empty ();
1491
+ }
1492
+
1493
+ /**
1494
+ * Method for finding merge settings for property, if any.
1495
+ *
1496
+ * @param ann Annotated entity to check
1497
+ *
1498
+ * @return {@code Boolean.TRUE} or {@code Boolean.FALSE} if explicit
1499
+ * merge enable/disable found; {@code null} otherwise.
1500
+ *
1501
+ * @since 2.9
1502
+ */
1503
+ public Boolean findMergeInfo (Annotated ann ) {
1504
+ return null ;
1505
+ }
1506
+
1507
1507
/**
1508
1508
* @param am Annotated method to check
1509
1509
*
0 commit comments