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

Kotlin code generated for deprecated protocol buffer elements should be marked as deprecated #121

Open
wfhartford opened this issue Apr 19, 2021 · 0 comments

Comments

@wfhartford
Copy link

It is possible to mark most protocol buffer elements as deprecated using the deprected option, for example, a message can be deprecated like this:

message Request {
  option deprecated = true;
  string requestContent = 1;
}

When Java code is generated for deprecated elements, they are annotated with @java.lang.Deprecated. I believe that the @kotlin.Deprecated annotation should be applied to deprecated elements in generated Kotlin code.

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

No branches or pull requests

1 participant