@@ -520,9 +520,9 @@ protected void addBeanProps(DeserializationContext ctxt,
520
520
// 25-Sep-2014, tatu: No point in finding constructor parameters for abstract types
521
521
// (since they are never used anyway)
522
522
if (isConcrete && propDef .hasConstructorParameter ()) {
523
- /* [JACKSON-700] If property is passed via constructor parameter, we must
524
- * handle things in special way. Not sure what is the most optimal way...
525
- * for now, let's just call a (new) method in builder, which does nothing.
523
+ /* If property is passed via constructor parameter, we must
524
+ * handle things in special way. Not sure what is the most optimal way...
525
+ * for now, let's just call a (new) method in builder, which does nothing.
526
526
*/
527
527
// but let's call a method just to allow custom builders to be aware...
528
528
final String name = propDef .getName ();
@@ -707,6 +707,7 @@ protected SettableBeanProperty constructSettableProperty(DeserializationContext
707
707
{
708
708
// need to ensure method is callable (for non-public)
709
709
AnnotatedMember mutator = propDef .getNonConstructorMutator ();
710
+
710
711
if (ctxt .canOverrideAccessModifiers ()) {
711
712
mutator .fixAccess (ctxt .isEnabled (MapperFeature .OVERRIDE_PUBLIC_ACCESS_MODIFIERS ));
712
713
}
@@ -720,24 +721,22 @@ protected SettableBeanProperty constructSettableProperty(DeserializationContext
720
721
property = property .withType (type );
721
722
}
722
723
723
- /* First: does the Method specify the deserializer to use?
724
- * If so, let's use it.
725
- */
724
+ // First: does the Method specify the deserializer to use? If so, let's use it.
726
725
JsonDeserializer <Object > propDeser = findDeserializerFromAnnotation (ctxt , mutator );
727
726
type = modifyTypeByAnnotation (ctxt , mutator , type );
728
727
TypeDeserializer typeDeser = type .getTypeHandler ();
729
728
SettableBeanProperty prop ;
730
729
if (mutator instanceof AnnotatedMethod ) {
731
730
prop = new MethodProperty (propDef , type , typeDeser ,
732
- beanDesc .getClassAnnotations (), (AnnotatedMethod ) mutator );
731
+ beanDesc .getClassAnnotations (), (AnnotatedMethod ) mutator );
733
732
} else {
734
733
prop = new FieldProperty (propDef , type , typeDeser ,
735
734
beanDesc .getClassAnnotations (), (AnnotatedField ) mutator );
736
735
}
737
736
if (propDeser != null ) {
738
737
prop = prop .withValueDeserializer (propDeser );
739
738
}
740
- // [JACKSON-235]: need to retain name of managed forward references:
739
+ // need to retain name of managed forward references:
741
740
AnnotationIntrospector .ReferenceProperty ref = propDef .findReferenceType ();
742
741
if (ref != null && ref .isManagedReference ()) {
743
742
prop .setManagedReferenceName (ref .getName ());
0 commit comments