if (contentType != null) { // collection[like], map[like], array, reference final Class<?> contentClass = (jsonDeser == null) ? null : _classIfExplicit(jsonDeser.contentAs()); if ((contentClass != null) && !_primitiveAndWrapper(contentType, contentClass)) {
@Override public Class<?> findDeserializationContentType(Annotated am, JavaType baseContentType) { // Primary annotation, JsonDeserialize JsonDeserialize ann = am.getAnnotation(JsonDeserialize.class); if (ann != null) { Class<?> cls = ann.contentAs(); if (cls != NoClass.class) { return cls; } } /* 30-Jun-2011, tatu: Here we used to have support for @JsonContentClass; * removed in 1.9 */ return null; }
@Override public Class<?> findDeserializationContentType(Annotated am, JavaType baseContentType) { // Primary annotation, JsonDeserialize JsonDeserialize ann = am.getAnnotation(JsonDeserialize.class); if (ann != null) { Class<?> cls = ann.contentAs(); if (cls != NoClass.class) { return cls; } } /* 30-Jun-2011, tatu: Here we used to have support for @JsonContentClass; * removed in 1.9 */ return null; }
@Override @Deprecated public Class<?> findDeserializationContentType(Annotated am, JavaType baseContentType) { JsonDeserialize ann = _findAnnotation(am, JsonDeserialize.class); return (ann == null) ? null : _classIfExplicit(ann.contentAs()); }
@Override public Class<?> findDeserializationContentType(Annotated am, JavaType baseContentType) { JsonDeserialize ann = _findAnnotation(am, JsonDeserialize.class); return (ann == null) ? null : _classIfExplicit(ann.contentAs()); }
@Override public Class<?> findDeserializationContentType(Annotated am, JavaType baseContentType) { JsonDeserialize ann = _findAnnotation(am, JsonDeserialize.class); return (ann == null) ? null : _classIfExplicit(ann.contentAs()); }
JsonDeserialize jsonDeserialize = property.getAnnotation(JsonDeserialize.class); this.keyAs = jsonDeserialize.keyAs(); this.contentAs = jsonDeserialize.contentAs(); return this;
if (contentType != null) { // collection[like], map[like], array, reference final Class<?> contentClass = (jsonDeser == null) ? null : _classIfExplicit(jsonDeser.contentAs()); if ((contentClass != null) && !_primitiveAndWrapper(contentType, contentClass)) {