@Override public BasicBeanDescription forDeserialization(DeserializationConfig cfg, JavaType type, MixInResolver r) { AnnotationIntrospector ai = cfg.getAnnotationIntrospector(); AnnotatedClass ac = AnnotatedClass.construct(type.getRawClass(), ai, r); // everything needed for deserialization, including ignored methods ac.resolveMemberMethods(getDeserializationMethodFilter(cfg), true); // include all kinds of creator methods: ac.resolveCreators(true); // yes, we need info on ignored fields as well ac.resolveFields(true); return new BasicBeanDescription(type, ac, ai); }
@Override public BasicBeanDescription forDeserialization(DeserializationConfig cfg, JavaType type, MixInResolver r) { boolean useAnnotations = cfg.isAnnotationProcessingEnabled(); AnnotationIntrospector ai = cfg.getAnnotationIntrospector(); AnnotatedClass ac = AnnotatedClass.construct(type.getRawClass(), (useAnnotations ? ai : null), r); // everything needed for deserialization, including ignored methods ac.resolveMemberMethods(getDeserializationMethodFilter(cfg), true); // include all kinds of creator methods: ac.resolveCreators(true); // yes, we need info on ignored fields as well ac.resolveFields(true); // Note: can't pass null AnnotationIntrospector for this... return new BasicBeanDescription(cfg, type, ac); }