We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Generated Java source code should be annotated with @Generated to aid static analysis and tooling. For example Error-Prone will ignore errors in @Generated code.
@Generated
As a workaround presently I have a pre-compilation step that adds the annotation manually, but ideally the protoc compiler would do this for me.
<!-- based on http://stackoverflow.com/a/5941279/113632 --> <replaceregexp match="public(.*) class" replace="@javax.annotation.Generated("protoc") \0"> <fileset dir="${proto.src}" includes="**/*.java" /> </replaceregexp>
The text was updated successfully, but these errors were encountered:
Duplicate of #42 ?
Sorry, something went wrong.
base
xfxyjwf
No branches or pull requests
Generated Java source code should be annotated with
@Generated
to aid static analysis and tooling. For example Error-Prone will ignore errors in@Generated
code.As a workaround presently I have a pre-compilation step that adds the annotation manually, but ideally the protoc compiler would do this for me.
The text was updated successfully, but these errors were encountered: