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

grpc-protoc fix missing javadoc #2144

Merged
merged 3 commits into from
Mar 10, 2022
Merged

Conversation

Scottmitch
Copy link
Member

Motivation:
addService(BlockingX) was deprecated and javadocs were
added to indicate this. However we need to add javadocs for
all params/return value or else javadoc lint warnings will
be generated.

Motivation:
`addService(BlockingX)` was deprecated and javadocs were
added to indicate this. However we need to add javadocs for
all params/return value or else javadoc lint warnings will
be generated.
if (printJavaDocs) {
extractJavaDocComments(state, methodIndex, b);
b.addJavadoc(JAVADOC_PARAM + metadata +
b.addJavadoc(JAVADOC_DEPRECATED + "Use {@link #$L($T,$T)}." + lineSeparator(),
Copy link
Member Author

Choose a reason for hiding this comment

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

I moved this to be conditional, however adding it to the end of this block won't make it after all the params because there are params added after this function is called. we can add additional callback to add deprecated in the right place but I'm not sure it is worth the additional complexity for something we will be removing...

@chemicL chemicL merged commit 3a9ed56 into apple:main Mar 10, 2022
@Scottmitch Scottmitch deleted the grpc_javadoc_test2 branch March 10, 2022 19:41
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