Class NonnullAnnotationVerifier
java.lang.Object
nl.jqno.equalsverifier.internal.reflection.annotations.NonnullAnnotationVerifier
Utility class that checks whether a field is marked with an Nonnull annotation of some sort.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanfieldIsNonnull(Field field, AnnotationCache annotationCache) Checks whether the given field is marked with an Nonnull annotation, whether directly, or through some default annotation mechanism.
-
Method Details
-
fieldIsNonnull
Checks whether the given field is marked with an Nonnull annotation, whether directly, or through some default annotation mechanism.- Parameters:
field- The field to be checked.annotationCache- To provide access to the annotations on the field and the field's class- Returns:
- True if the field is to be treated as Nonnull.
-