Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
NormalizedNodeOutputStreamWriter should forward flush()
[controller.git]
/
opendaylight
/
md-sal
/
sal-clustering-commons
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
node
/
utils
/
stream
/
NormalizedNodeOutputStreamWriter.java
diff --git
a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeOutputStreamWriter.java
b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeOutputStreamWriter.java
index c76a254b53ffcdb8f8e64594faa7e93864d4b0ab..05858a87a12a20630c6bafb531844367e01e1907 100644
(file)
--- a/
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeOutputStreamWriter.java
+++ b/
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/NormalizedNodeOutputStreamWriter.java
@@
-177,6
+177,9
@@
public class NormalizedNodeOutputStreamWriter implements NormalizedNodeStreamWri
@Override
public void flush() throws IOException {
@Override
public void flush() throws IOException {
+ if (output instanceof OutputStream) {
+ ((OutputStream)output).flush();
+ }
}
private void startNode(final QName qName, byte nodeType) throws IOException {
}
private void startNode(final QName qName, byte nodeType) throws IOException {
@@
-310,7
+313,6
@@
public class NormalizedNodeOutputStreamWriter implements NormalizedNodeStreamWri
}
}
}
}
- @SuppressWarnings("rawtypes")
private void writeObject(Object value) throws IOException {
byte type = ValueTypes.getSerializableType(value);
private void writeObject(Object value) throws IOException {
byte type = ValueTypes.getSerializableType(value);