List of usage examples for com.fasterxml.jackson.databind.introspect BeanPropertyDefinition hasField
public abstract boolean hasField();
From source file:springfox.documentation.schema.Annotations.java
@SuppressWarnings("PMD") private static <A extends Annotation> Optional<A> tryGetFieldAnnotation( BeanPropertyDefinition beanPropertyDefinition, Class<A> annotationClass) { if (beanPropertyDefinition.hasField()) { return Optional.fromNullable(beanPropertyDefinition.getField().getAnnotation(annotationClass)); }/*from w w w .j av a 2 s. co m*/ return Optional.absent(); }