You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dc...@apache.org on 2018/08/07 05:40:44 UTC

[thrift] branch master updated: THRIFT-4614: Generate missing @Nullable annotation (#1577)

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 831819c  THRIFT-4614: Generate missing @Nullable annotation (#1577)
831819c is described below

commit 831819c5634627c8dfb5c3db777855bebac66a77
Author: Manu Sridharan <ms...@gmail.com>
AuthorDate: Mon Aug 6 22:40:38 2018 -0700

    THRIFT-4614: Generate missing @Nullable annotation (#1577)
    
    Client: Java
---
 compiler/cpp/src/thrift/generate/t_java_generator.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/compiler/cpp/src/thrift/generate/t_java_generator.cc b/compiler/cpp/src/thrift/generate/t_java_generator.cc
index 2db3c3f..67b4177 100644
--- a/compiler/cpp/src/thrift/generate/t_java_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_java_generator.cc
@@ -2359,6 +2359,7 @@ void t_java_generator::generate_java_bean_boilerplate(ostream& out, t_struct* ts
         if (is_deprecated) {
           indent(out) << "@Deprecated" << endl;
         }
+        indent(out) << java_nullable_annotation() << endl;
         indent(out) << "public java.util.Iterator<" << type_name(element_type, true, false)
                     << "> get" << cap_name;
         out << get_cap_name("iterator() {") << endl;