This is an automated email from the ASF dual-hosted git repository.

dcelasun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git


The following commit(s) were added to refs/heads/master by this push:
     new f216dfb  THRIFT-4657: Include @javax.annotation.Generated annotations 
for generated Java union classes
f216dfb is described below

commit f216dfb7168b08afbebd51b33d50dc6b16d88dbf
Author: Manu Sridharan <msrid...@gmail.com>
AuthorDate: Fri Nov 2 23:45:50 2018 -0700

    THRIFT-4657: Include @javax.annotation.Generated annotations for generated 
Java union classes
    
    Client: Java
---
 compiler/cpp/src/thrift/generate/t_java_generator.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/compiler/cpp/src/thrift/generate/t_java_generator.cc 
b/compiler/cpp/src/thrift/generate/t_java_generator.cc
index 67b4177..4780dc7 100644
--- a/compiler/cpp/src/thrift/generate/t_java_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_java_generator.cc
@@ -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;
   }

Reply via email to