Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
1af5728
)
THRIFT-1856: different comments generated
author
Jake Farrell
<jfarrell@apache.org>
Mon, 18 Feb 2013 00:31:04 +0000
(19:31 -0500)
committer
Jake Farrell
<jfarrell@apache.org>
Mon, 18 Feb 2013 00:31:04 +0000
(19:31 -0500)
Patch: Jake Farrell
Fix different comments being generated on OSX vs Linux/Windows.
compiler/cpp/src/generate/t_java_generator.cc
patch
|
blob
|
history
diff --git
a/compiler/cpp/src/generate/t_java_generator.cc
b/compiler/cpp/src/generate/t_java_generator.cc
index
78b4c9c
..
005cba4
100644
(file)
--- a/
compiler/cpp/src/generate/t_java_generator.cc
+++ b/
compiler/cpp/src/generate/t_java_generator.cc
@@
-3337,8
+3337,9
@@
string t_java_generator::declare_field(t_field* tfield, bool init, bool comment)
result += " = new " + type_name(ttype, false, true) + "()";;
}
}
+ result += ";";
if (comment) {
- result += "
;
// ";
+ result += " // ";
if (tfield->get_req() == t_field::T_OPTIONAL) {
result += "optional";
} else {