mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
THRIFT-4657: Include @javax.annotation.Generated annotations for generated Java union classes
Client: Java
This commit is contained in:
parent
92be4f312b
commit
f216dfb716
@ -827,6 +827,10 @@ void t_java_generator::generate_java_union(t_struct* tstruct) {
|
||||
bool is_final = (tstruct->annotations_.find("final") != tstruct->annotations_.end());
|
||||
bool is_deprecated = this->is_deprecated(tstruct->annotations_);
|
||||
|
||||
if (!suppress_generated_annotations_) {
|
||||
generate_javax_generated_annotation(f_struct);
|
||||
}
|
||||
|
||||
if (is_deprecated) {
|
||||
indent(f_struct) << "@Deprecated" << endl;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user