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

Support @Contract annotations #1008

Open
wmdietl opened this issue Dec 4, 2024 · 0 comments
Open

Support @Contract annotations #1008

wmdietl opened this issue Dec 4, 2024 · 0 comments

Comments

@wmdietl
Copy link
Member

wmdietl commented Dec 4, 2024

To provide better interaction with IntelliJ, NullAway, etc, it would be nice to support @Contract annotations and interpret them as the corresponding CF annotations.
For documentation see:

https://github.com/JetBrains/java-annotations/blob/master/src/jvmMain/java/org/jetbrains/annotations/Contract.java

We do not want to add an extra dependency on this annotation, so we need to find a solution, e.g. having our own version and creating an alias.
We also need to be careful about the possible performance impact.

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

No branches or pull requests

1 participant