@Override public Class<?> findDeserializationContentType(Annotated am, JavaType baseContentType, String propName) { // 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, String propName) { // 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, String propName) { // 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, String propName) { // 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; }
@SuppressWarnings("deprecation") @Override public Class<?> findDeserializationContentType(Annotated am) { // Primary annotation, JsonDeserialize JsonDeserialize ann = am.getAnnotation(JsonDeserialize.class); if (ann != null) { Class<?> cls = ann.contentAs(); if (cls != NoClass.class) { return cls; } } /* !!! 21-May-2009, tatu: JsonClass is deprecated; will need to * drop support at a later point (for 2.0?) */ JsonContentClass oldAnn = am.getAnnotation(JsonContentClass.class); if (oldAnn != null) { Class<?> cls = oldAnn.value(); if(cls != NoClass.class) { return cls; } } return null; }
@SuppressWarnings("deprecation") @Override public Class<?> findDeserializationContentType(Annotated am, JavaType baseContentType, String propName) { // Primary annotation, JsonDeserialize JsonDeserialize ann = am.getAnnotation(JsonDeserialize.class); if (ann != null) { Class<?> cls = ann.contentAs(); if (cls != NoClass.class) { return cls; } } /* !!! 21-May-2009, tatu: JsonClass is deprecated; will need to * drop support at a later point (for 2.0?) */ JsonContentClass oldAnn = am.getAnnotation(JsonContentClass.class); if (oldAnn != null) { Class<?> cls = oldAnn.value(); if(cls != NoClass.class) { return cls; } } return null; }