-
Notifications
You must be signed in to change notification settings - Fork 299
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 method parameters in @EnsuresNonnull{If} annotations #1099
Comments
Hi @agrieve I think you can do this with a |
Admittedly the current situation, with a mix of |
Ah, I thought that would be "check this returns false if the parameter is null", but not "returning false implies this is null". E.g. in my example it returns false even when the arg could be non-null. |
I always get confused by this stuff 🙂, but I think |
Similar to bug #431
The checkerframework version of this annotation shows the syntax for this as:
Not sure if it also supports just listing the parameter's name...
Here's an example in Chrome of where this would be useful:
The text was updated successfully, but these errors were encountered: