Skip to content

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

Open
@wfhartford

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions