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

add configuration option to allow nullable annotation on return #886

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vdaniloff
Copy link

@vdaniloff vdaniloff commented Apr 11, 2022

The great Jsr305 check resolves almost everyone needs for validation, but it does not allow nullable as return value annotation, requiring CheckForNull usage.

On the other hand this is in fact commonly used practice. Even #622 uses that in code snippet.

A new parameter has been added to the validation to allow using nullable.

@romani
Copy link
Member

romani commented Apr 11, 2022

Thanks a lot, can you explain problem in details and example in issue.
Please create issue by format we need https://github.com/sevntu-checkstyle/sevntu.checkstyle/blob/master/.github/ISSUE_TEMPLATE.md
We need to approve issue as confirmation that you idea is correct.

Please use link to issue in commit message.

@vdaniloff vdaniloff force-pushed the allow-nullable-as-return-option branch from ae573b4 to 95e928e Compare April 11, 2022 15:54
@vdaniloff
Copy link
Author

Created #887 and mentioned in commit

@rnveach
Copy link
Contributor

rnveach commented Oct 10, 2022

@vdaniloff @romani Is there agreement on the issue?

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.

3 participants