Skip to content

Add Support of Parsing Annotations without Arguments to Java Parser #6893

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

Merged
merged 5 commits into from
Oct 22, 2019

Conversation

noti0na1
Copy link
Member

@noti0na1 noti0na1 commented Jul 19, 2019

This PR adds support of parsing simple annotations in Java files which don't have arguments.

This PR is similar to #6731. For the explicit-nulls project, we want to read NotNull annotations of Java methods to generate better types. With this change, dotc can read simple annotations of methods in Java files.

Since all the NotNull annotations we are interested in does not require arguments, all the annotations with arguments are ignored.

This PR should not break any other functionalities.

Copy link
Member

@dottybot dottybot left a comment

Choose a reason for hiding this comment

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

Hello, and thank you for opening this PR! 🎉

All contributors have signed the CLA, thank you! ❤️

Have an awesome day! ☀️

@noti0na1
Copy link
Member Author

@smarter Could you please take a look?

@smarter
Copy link
Member

smarter commented Oct 18, 2019

Will do. I added you as a contributor to dotty so you can assign people to PRs etc.

@smarter smarter self-assigned this Oct 18, 2019
@smarter smarter merged commit 799f4c5 into scala:master Oct 22, 2019
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.

4 participants