@Override public Type getGenericType() { return annotated.getGenericType(); }
private Type getTypeForAnnotated(Annotated a) { if (a instanceof AnnotatedMethod) { return ((AnnotatedMethod) a).getGenericParameterType(0); } else { return a.getGenericType(); } }
private Type getType(Annotated a) { try { // Jackson 2.7+ return a.getType(); } catch (Throwable t) { return a.getGenericType(); } } }
/** * Full generic type of the annotated element; definition * of what exactly this means depends on sub-class. */ public JavaType getType(TypeBindings context) { return context.resolveType(getGenericType()); }
/** * Full generic type of the annotated element; definition * of what exactly this means depends on sub-class. */ public JavaType getType(TypeBindings context) { return context.resolveType(getGenericType()); }
/** * Full generic type of the annotated element; definition * of what exactly this means depends on sub-class. */ public JavaType getType(TypeBindings context) { return context.resolveType(getGenericType()); }
/** * Full generic type of the annotated element; definition * of what exactly this means depends on sub-class. */ public JavaType getType(TypeBindings context) { return context.resolveType(getGenericType()); }