-
Notifications
You must be signed in to change notification settings - Fork 147
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
New check: ReturnMissingNullable #622
Comments
@George-007 Are you expecting users to place |
Checkstyle can not reliably diagnose this, as we do not have type, class hierarchies, and all other meta information about all methods that are in use in method we will validate.
checkstyle ca not go out of parser file, Check could clearly demand annotation is "return null" is present, But Check will not find complicated cases ... so it should be clearly defined in Check documentation. |
I'm aware that checkstyle can only parse one file at a time - so only the basic case of returning the |
Methods returning null should be annotated
@Nullable
.Invalid code:
Valid code:
The text was updated successfully, but these errors were encountered: