Java 类javax.json.bind.annotation.JsonbNillable 实例源码

项目:yasson    文件:AnnotationIntrospector.java   
/**
 * Checks for JsonbNillable annotation on a class, its superclasses and interfaces.
 *
 * @param clazzElement class to search JsonbNillable in.
 * @return true if found
 */
public boolean isClassNillable(JsonbAnnotatedElement<Class<?>> clazzElement) {
    final JsonbNillable jsonbNillable = findAnnotation(clazzElement.getAnnotations(), JsonbNillable.class);
    if (jsonbNillable != null) {
        return jsonbNillable.value();
    }
    return jsonbContext.getConfigProperties().getConfigNullable();
}