diff options
author | Mark Spruiell <mes@zeroc.com> | 2016-03-04 14:02:58 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2016-03-04 14:02:58 -0800 |
commit | 9d5f230f7d7ebbe778e8ad02c54f55acbecdca3d (patch) | |
tree | 73281aa5e11f9a2dad6372c45f1cd7399caf6004 /cpp/src | |
parent | ICE-6864 - Java changes for Slice docs (diff) | |
download | ice-9d5f230f7d7ebbe778e8ad02c54f55acbecdca3d.tar.bz2 ice-9d5f230f7d7ebbe778e8ad02c54f55acbecdca3d.tar.xz ice-9d5f230f7d7ebbe778e8ad02c54f55acbecdca3d.zip |
fix for slice2java crash
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/slice2java/Gen.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index 8050a34577a..e6f2bc91571 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -5309,14 +5309,14 @@ Slice::Gen::HelperVisitor::visitClassDefStart(const ClassDefPtr& p) Output& out2 = output(); - out << sp; - writeDocComment(out, getDeprecateReason(p, 0, p->isInterface() ? "interface" : "class"), + out2 << sp; + writeDocComment(out2, getDeprecateReason(p, 0, p->isInterface() ? "interface" : "class"), "Provides type-specific helper functions."); out2 << nl << "public final class " << name << "Helper"; out2 << sb; - out << sp; - writeDocComment(out, "", + out2 << sp; + writeDocComment(out2, "", "Writes an instance to the stream.\n" "@param __outS The output stream.\n" "@param __v The instance to write. A null value is legal."); @@ -5325,8 +5325,8 @@ Slice::Gen::HelperVisitor::visitClassDefStart(const ClassDefPtr& p) out2 << nl << "__outS.writeObject(__v);"; out2 << eb; - out << sp; - writeDocComment(out, "", + out2 << sp; + writeDocComment(out2, "", "Reads an instance from the stream.\n" "@param __inS The input stream.\n" "@param __h A holder to contain the instance when it is eventually unmarshaled."); @@ -5335,8 +5335,8 @@ Slice::Gen::HelperVisitor::visitClassDefStart(const ClassDefPtr& p) out2 << nl << "__inS.readObject(__h);"; out2 << eb; - out << sp; - writeDocComment(out, "", + out2 << sp; + writeDocComment(out2, "", "Provides the optional format for an instance of this type.\n" "@return The optional format."); out2 << nl << "public static Ice.OptionalFormat optionalFormat()"; |