Skip to content

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