Skip to content

Commit

Permalink
[eclipse-ee4j#620]Use more isEmpty() in previous changeset.
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Pinsky <[email protected]>
  • Loading branch information
api-from-the-ion committed Nov 1, 2023
1 parent 83af633 commit 1cfc5b6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ public SerializerBinding<?> getSerializerBinding(JsonbAnnotatedElement<Class<?>>

private <T extends Annotation> T getAnnotationFromPropertyType(Property property, Class<T> annotationClass) {
final Optional<Class<?>> optionalRawType = ReflectionUtils.getOptionalRawType(property.getPropertyType());
//will not work for type variable properties, which are bound to class that is annotated.
return optionalRawType.map(aClass -> findAnnotation(collectAnnotations(aClass).getAnnotations(), annotationClass)).orElse(null);
}
//will not work for type variable properties, which are bound to class that is annotated.
return optionalRawType.map(aClass -> findAnnotation(collectAnnotations(aClass).getAnnotations(), annotationClass)).orElse(null);
}

/**
* Checks if property is nillable.
Expand Down

0 comments on commit 1cfc5b6

Please sign in to comment.