Skip to content

Conversation

@xingweitian
Copy link
Member

@xingweitian xingweitian commented Nov 12, 2019

Copy link
Member

@mernst mernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the same edits in the Java 11 annotated JDK, in repository https://github.com/typetools/jdk. Then, we will merge the two pull requests together.

Thanks!

@xingweitian
Copy link
Member Author

@mernst I have already changed to the correct jdkShaHash and travis has been passed.

Here is my pull request on typetools/jdk: typetools/jdk#20
And the corresponding jdk8 pull request: typetools/annotated-libraries#38

@xingweitian xingweitian requested a review from wmdietl November 15, 2019 23:33
@mernst
Copy link
Member

mernst commented Nov 17, 2019

Thanks for the annotations.

There were problems with this pull request and the associated pull request typetools/jdk#20.

  • @Nullable char [] varname is a declaration of an array of @Nullable char, which makes no sense because char is primitive. I think you meant char @Nullable [] varname, which declares a nullable array of char.
  • There were missing annotations, which I discovered by grepping for "null" in the documentation. When annotating a file, it is important to annotate the whole thing, not just a few methods. Otherwise, it is very confusing for people later to use a partially-annotated file or to debug why the annotations are not consistently present.
  • You did not add @AnnotatedFor annotations to the classes.

Please see the changes that I made to both pull requests. In future pull requests, could you address those items?

I think this is ready to be merged now (though you also assigned @wmdietl). Thanks again.

@xingweitian
Copy link
Member Author

Thanks for the annotations.

There were problems with this pull request and the associated pull request typetools/jdk#20.

  • @Nullable char [] varname is a declaration of an array of @Nullable char, which makes no sense because char is primitive. I think you meant char @Nullable [] varname, which declares a nullable array of char.
  • There were missing annotations, which I discovered by grepping for "null" in the documentation. When annotating a file, it is important to annotate the whole thing, not just a few methods. Otherwise, it is very confusing for people later to use a partially-annotated file or to debug why the annotations are not consistently present.
  • You did not add @AnnotatedFor annotations to the classes.

Please see the changes that I made to both pull requests. In future pull requests, could you address those items?

I think this is ready to be merged now (though you also assigned @wmdietl). Thanks again.

Thanks a lot for the helpful advice! Sorry for the missed and wrong usage of annotations, I will do better in the next time.

@wmdietl wmdietl merged commit 44ece9b into typetools:master Nov 18, 2019
@wmdietl wmdietl deleted the nullness-java-security-keystore branch November 18, 2019 02:23
@wmdietl
Copy link
Member

wmdietl commented Nov 18, 2019

@xingweitian Thanks for the specifications and @mernst thanks for the review!

wmdietl pushed a commit to typetools/jdk that referenced this pull request Nov 18, 2019
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