Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
c86b5044
Commit
c86b5044
authored
Sep 10, 2011
by
csharptest
Committed by
rogerk
Sep 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missing braces :)
parent
f52ec95a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
JsonFormatWriter.cs
src/ProtocolBuffers.Serialization/JsonFormatWriter.cs
+3
-1
XmlFormatWriter.cs
src/ProtocolBuffers.Serialization/XmlFormatWriter.cs
+5
-1
CodedOutputStream.cs
src/ProtocolBuffers/CodedOutputStream.cs
+2
-0
No files found.
src/ProtocolBuffers.Serialization/JsonFormatWriter.cs
View file @
c86b5044
...
@@ -246,9 +246,11 @@ namespace Google.ProtocolBuffers.Serialization
...
@@ -246,9 +246,11 @@ namespace Google.ProtocolBuffers.Serialization
{
{
if
(
disposing
)
if
(
disposing
)
{
{
while
(
_counter
.
Count
>
1
)
while
(
_counter
.
Count
>
1
)
{
WriteMessageEnd
();
WriteMessageEnd
();
}
}
}
base
.
Dispose
(
disposing
);
base
.
Dispose
(
disposing
);
}
}
...
...
src/ProtocolBuffers.Serialization/XmlFormatWriter.cs
View file @
c86b5044
...
@@ -78,8 +78,10 @@ namespace Google.ProtocolBuffers.Serialization
...
@@ -78,8 +78,10 @@ namespace Google.ProtocolBuffers.Serialization
{
{
if
(
disposing
)
if
(
disposing
)
{
{
while
(
_messageOpenCount
>
0
)
while
(
_messageOpenCount
>
0
)
{
WriteMessageEnd
();
WriteMessageEnd
();
}
_output
.
Close
();
_output
.
Close
();
}
}
...
@@ -163,7 +165,9 @@ namespace Google.ProtocolBuffers.Serialization
...
@@ -163,7 +165,9 @@ namespace Google.ProtocolBuffers.Serialization
public
override
void
WriteMessageEnd
()
public
override
void
WriteMessageEnd
()
{
{
if
(
_messageOpenCount
<=
0
)
if
(
_messageOpenCount
<=
0
)
{
throw
new
InvalidOperationException
();
throw
new
InvalidOperationException
();
}
_output
.
WriteEndElement
();
_output
.
WriteEndElement
();
_output
.
Flush
();
_output
.
Flush
();
...
...
src/ProtocolBuffers/CodedOutputStream.cs
View file @
c86b5044
...
@@ -131,7 +131,9 @@ namespace Google.ProtocolBuffers
...
@@ -131,7 +131,9 @@ namespace Google.ProtocolBuffers
if
(
output
!=
null
)
if
(
output
!=
null
)
{
{
if
(
position
>
0
)
if
(
position
>
0
)
{
Flush
();
Flush
();
}
output
.
Dispose
();
output
.
Dispose
();
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment