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

Private ServerMethodDefinition constructor; avoid create() in codegen #1004

Merged
merged 1 commit into from
Sep 11, 2015

Conversation

ejona86
Copy link
Member

@ejona86 ejona86 commented Sep 11, 2015

There is no need to use ServerMethodDefinition in codegen. The create()
method itself could be helpful to a dynamic HandlerRegistry
implementation, so we won't remove it.

This has mostly no impact on our public API, so could be delayed after beta. But it
does fix a missing check in one of the addMethod() overloads, which could break
broken code if we added it later.

@zhangkun83
Copy link
Contributor

Make ServerMethodDefinition constructor private?

@nmittler
Copy link
Member

LGTM

@ejona86
Copy link
Member Author

ejona86 commented Sep 11, 2015

Make ServerMethodDefinition constructor private?

Umm... Yeah. Done. I now do the thing I said I was doing.

@zhangkun83
Copy link
Contributor

LGTM

There is no need to use ServerMethodDefinition in codegen. The create()
method itself could be helpful to a dynamic HandlerRegistry
implementation, so we won't remove it.
@ejona86 ejona86 merged commit a6621da into grpc:master Sep 11, 2015
@ejona86 ejona86 deleted the remove-methodef-create branch September 11, 2015 16:26
@lock lock bot locked as resolved and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants