Skip to content

Commit

Permalink
Fixes potential null warning from Spotbugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jqno committed Dec 17, 2021
1 parent a96a44d commit d0be167
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ private AnnotationProperties buildAnnotationProperties(AnnotationDescription ann

private boolean matches(AnnotationDescription foundAnnotation, Annotation supportedAnnotation) {
String canonicalName = foundAnnotation.getAnnotationType().getCanonicalName();
if (canonicalName == null) {
return false;
}
return supportedAnnotation.partialClassNames().stream().anyMatch(canonicalName::endsWith);
}
}

0 comments on commit d0be167

Please sign in to comment.