@Override public Class<?> findDeserializationKeyType(Annotated am, JavaType baseKeyType, String propName) { // Primary annotation, JsonDeserialize JsonDeserialize ann = am.getAnnotation(JsonDeserialize.class); if (ann != null) { Class<?> cls = ann.keyAs(); if (cls != NoClass.class) { return cls; } } /* 30-Jun-2011, tatu: Here we used to have support for @JsonKeyClass; * removed in 1.9 */ return null; }
@Override public Class<?> findDeserializationKeyType(Annotated am, JavaType baseKeyType, String propName) { // Primary annotation, JsonDeserialize JsonDeserialize ann = am.getAnnotation(JsonDeserialize.class); if (ann != null) { Class<?> cls = ann.keyAs(); if (cls != NoClass.class) { return cls; } } /* 30-Jun-2011, tatu: Here we used to have support for @JsonKeyClass; * removed in 1.9 */ return null; }
@Override public Class<?> findDeserializationKeyType(Annotated am, JavaType baseKeyType, String propName) { // Primary annotation, JsonDeserialize JsonDeserialize ann = am.getAnnotation(JsonDeserialize.class); if (ann != null) { Class<?> cls = ann.keyAs(); if (cls != NoClass.class) { return cls; } } /* 30-Jun-2011, tatu: Here we used to have support for @JsonKeyClass; * removed in 1.9 */ return null; }
@Override public Class<?> findDeserializationKeyType(Annotated am, JavaType baseKeyType, String propName) { // Primary annotation, JsonDeserialize JsonDeserialize ann = am.getAnnotation(JsonDeserialize.class); if (ann != null) { Class<?> cls = ann.keyAs(); if (cls != NoClass.class) { return cls; } } /* 30-Jun-2011, tatu: Here we used to have support for @JsonKeyClass; * removed in 1.9 */ return null; }
@SuppressWarnings("deprecation") public Class<?> findDeserializationKeyType(Annotated am) { // Primary annotation, JsonDeserialize JsonDeserialize ann = am.getAnnotation(JsonDeserialize.class); if (ann != null) { Class<?> cls = ann.keyAs(); 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?) */ JsonKeyClass oldAnn = am.getAnnotation(JsonKeyClass.class); if (oldAnn != null) { Class<?> cls = oldAnn.value(); if(cls != NoClass.class) { return cls; } } return null; }
@Override public Class<?> findDeserializationKeyType(Annotated am, JavaType baseKeyType, String propName) { // Primary annotation, JsonDeserialize JsonDeserialize ann = am.getAnnotation(JsonDeserialize.class); if (ann != null) { Class<?> cls = ann.keyAs(); 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?) */ @SuppressWarnings("deprecation") JsonKeyClass oldAnn = am.getAnnotation(JsonKeyClass.class); if (oldAnn != null) { @SuppressWarnings("deprecation") Class<?> cls = oldAnn.value(); if(cls != NoClass.class) { return cls; } } return null; }