@@ -1022,7 +1022,7 @@ public boolean isUnknownTypeSerializer(JsonSerializer<?> ser) {
1022
1022
* either given a {@link Class} to instantiate (with default constructor),
1023
1023
* or an uninitialized serializer instance.
1024
1024
* Either way, serialize will be properly resolved
1025
- * (via {@link com.fasterxml.jackson.databind.ser.ResolvableSerializer }) and/or contextualized
1025
+ * (via {@link com.fasterxml.jackson.databind.JsonSerializer#resolve }) and/or contextualized
1026
1026
* (via {@link com.fasterxml.jackson.databind.ser.ContextualSerializer}) as necessary.
1027
1027
*
1028
1028
* @param annotated Annotated entity that contained definition
@@ -1455,19 +1455,15 @@ protected JsonSerializer<Object> _handleContextualResolvable(JsonSerializer<?> s
1455
1455
BeanProperty property )
1456
1456
throws JsonMappingException
1457
1457
{
1458
- if (ser instanceof ResolvableSerializer ) {
1459
- ((ResolvableSerializer ) ser ).resolve (this );
1460
- }
1458
+ ser .resolve (this );
1461
1459
return (JsonSerializer <Object >) handleSecondaryContextualization (ser , property );
1462
1460
}
1463
1461
1464
1462
@ SuppressWarnings ("unchecked" )
1465
1463
protected JsonSerializer <Object > _handleResolvable (JsonSerializer <?> ser )
1466
1464
throws JsonMappingException
1467
1465
{
1468
- if (ser instanceof ResolvableSerializer ) {
1469
- ((ResolvableSerializer ) ser ).resolve (this );
1470
- }
1466
+ ser .resolve (this );
1471
1467
return (JsonSerializer <Object >) ser ;
1472
1468
}
1473
1469
@@ -1482,10 +1478,9 @@ protected final DateFormat _dateFormat()
1482
1478
if (_dateFormat != null ) {
1483
1479
return _dateFormat ;
1484
1480
}
1485
- /* At this point, all timezone configuration should have occurred, with respect
1486
- * to default dateformat configuration. But we still better clone
1487
- * an instance as formatters are stateful, not thread-safe.
1488
- */
1481
+ // At this point, all timezone configuration should have occurred, with respect
1482
+ // to default dateformat configuration. But we still better clone
1483
+ // an instance as formatters are stateful, not thread-safe.
1489
1484
DateFormat df = _config .getDateFormat ();
1490
1485
_dateFormat = df = (DateFormat ) df .clone ();
1491
1486
// [databind#939]: 26-Sep-2015, tatu: With 2.6, formatter has been (pre)configured
0 commit comments