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

[1.x] Allow a standalone usage of precondition checks #734

Open
yevhenii-nadtochii opened this issue Sep 30, 2022 · 0 comments
Open

[1.x] Allow a standalone usage of precondition checks #734

yevhenii-nadtochii opened this issue Sep 30, 2022 · 0 comments
Assignees

Comments

@yevhenii-nadtochii
Copy link
Contributor

Not all methods provided by Preconditions2 are annotated with @CanIgnoreReturnValue. The outer package is annotated with @CheckReturnValue. And usage of those checks without utilizing of the returned value causes a compilation error.

The corresponding methods in [2.x] branch are already allowed to ignore the returned values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants