Skip to content

Conversation

@pkoenig10
Copy link
Contributor

The lack of a null check means that hasDirectAnnotationWithSimpleName can't be composed with matcher that may attempt to match nodes for which getDeclaredSymbol will return null. For example:

Matchers.enclosingNode(Matchers.hasAnnotationWithSimpleName("MyAnnotation"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants