* class to use for serialization.
* Returns null if no such annotation found.
*/
protected JsonSerializer<Object> findSerializerFromAnnotation(Annotated a)
{
JsonUseSerializer ann = a.getAnnotation(JsonUseSerializer.class);
if (ann == null) {
return null;
}
Class<?> serClass = ann.value();
/* 21-Feb-2009, tatu: There is now a way to indicate "no class"
* (to essentially denote a 'dummy' annotation, needed for
* overriding in some cases), need to check:
*/
if (serClass == NoClass.class) {