commit | d4235e0a47bde7a2fdbc9fc73dc6ca7231992278 | [log] [tgz] |
---|---|---|
author | Bryan Duxbury <bryanduxbury@apache.org> | Mon Sep 13 16:28:53 2010 +0000 |
committer | Bryan Duxbury <bryanduxbury@apache.org> | Mon Sep 13 16:28:53 2010 +0000 |
tree | 83c23dd8c22d7983c629b909e514f3b83026c4c5 | |
parent | a7420b6593998776871d55cbf415a0531c76a012 [diff] |
THRIFT-870. java: Java constants don't get Javadoc comments Fix a trivial oversight. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996592 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/generate/t_java_generator.cc b/compiler/cpp/src/generate/t_java_generator.cc index e136c33..a7504ff 100644 --- a/compiler/cpp/src/generate/t_java_generator.cc +++ b/compiler/cpp/src/generate/t_java_generator.cc
@@ -485,6 +485,7 @@ indent_up(); vector<t_const*>::iterator c_iter; for (c_iter = consts.begin(); c_iter != consts.end(); ++c_iter) { + generate_java_doc(f_consts, (*c_iter)); print_const_value(f_consts, (*c_iter)->get_name(), (*c_iter)->get_type(),
diff --git a/test/DebugProtoTest.thrift b/test/DebugProtoTest.thrift index d4c8759..b01129a 100644 --- a/test/DebugProtoTest.thrift +++ b/test/DebugProtoTest.thrift
@@ -272,6 +272,7 @@ TWO = 2 } +/** This is a docstring on a constant! */ const SomeEnum MY_SOME_ENUM = SomeEnum.ONE const SomeEnum MY_SOME_ENUM_1 = 1