diff options
author | Bernard Normier <bernard@zeroc.com> | 2017-03-29 20:43:52 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2017-03-29 20:43:52 -0400 |
commit | 9ce3150693623af3331061d29672cd44fdef7dc4 (patch) | |
tree | f46ca87aadb9a99ed7e7a86bcd18ed6b3c63b5c9 /cpp/src/slice2java/Gen.cpp | |
parent | ICE-7716 - PHP5 fixes (diff) | |
download | ice-9ce3150693623af3331061d29672cd44fdef7dc4.tar.bz2 ice-9ce3150693623af3331061d29672cd44fdef7dc4.tar.xz ice-9ce3150693623af3331061d29672cd44fdef7dc4.zip |
Removed trailing whitespace from Slice files and generated code
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r-- | cpp/src/slice2java/Gen.cpp | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index 4ab41ebefc0..24f3a7e2957 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -1971,12 +1971,28 @@ Slice::JavaVisitor::writeDocCommentLines(Output& out, const string& text) start = pos + 1; while((pos = text.find_first_of(ws, start)) != string::npos) { - out << nl << " * " << IceUtilInternal::trim(text.substr(start, pos - start)); + string line = IceUtilInternal::trim(text.substr(start, pos - start)); + if(line.empty()) + { + out << nl << " *"; + } + else + { + out << nl << " * " << line; + } start = pos + 1; } if(start < text.size()) { - out << nl << " * " << IceUtilInternal::trim(text.substr(start)); + string line = IceUtilInternal::trim(text.substr(start)); + if(line.empty()) + { + out << nl << " *"; + } + else + { + out << nl << " * " << line; + } } } } @@ -3601,7 +3617,7 @@ Slice::Gen::TypesVisitor::visitStructEnd(const StructPtr& p) out << eb; out << eb; - out << nl << nl << "private static final " << name << " _nullMarshalValue = new " << name << "();"; + out << sp << nl << "private static final " << name << " _nullMarshalValue = new " << name << "();"; } out << sp << nl << "public static final long serialVersionUID = "; |