-
Notifications
You must be signed in to change notification settings - Fork 260
feat(java): annotate nullability #1234
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
Conversation
This commit annotates values (parameters, properties, and method return values) with the JetBrains annotations associated to the use-case. Implements aws/aws-cdk#6026
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Minor comments, added do-not-merge |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it! |
This commit annotates values (parameters, properties, and method return
values) with the JetBrains annotations associated to the use-case:
@org.jetbrains.annotations.NotNull@org.jetbrains.annotations.NullableWhile there is no standard nullability annotation in the Java Language Specification,
several alternatives exist - including JSR-305
and FindBugs.
The decision to use JetBrains' is based on the following reasoning:
This can help IDEs provide static analysis of the code for discovery
of possible bugs; and will make usage from Kotlin nicer as it enables
use of the correct platform types.
Implements aws/aws-cdk#6026
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.