/** * 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(); }