Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recognize annotations with the simple name @UsedReflectively #2676

Merged
merged 1 commit into from Nov 11, 2021

Conversation

copybara-service[bot]
Copy link
Contributor

Recognize annotations with the simple name @UsedReflectively

#2668

@google-cla google-cla bot added the cla: yes label Nov 11, 2021
@@ -926,6 +926,37 @@ public static boolean hasDirectAnnotationWithSimpleName(Tree tree, String simple
return hasDirectAnnotationWithSimpleName(getDeclaredSymbol(tree), simpleName);
}

/**
* Returns true if any of the given tree is a declaration annotated with an annotation with the
* simple name {@code @usedReflectively}, or any annotations meta-annotated with an annotation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* simple name {@code @usedReflectively}, or any annotations meta-annotated with an annotation
* simple name {@code @UsedReflectively}, or any annotations meta-annotated with an annotation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants