Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add QNameModule coding
[controller.git]
/
opendaylight
/
md-sal
/
sal-clustering-commons
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
node
/
utils
/
stream
/
LithiumNormalizedNodeInputStreamReader.java
diff --git
a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/LithiumNormalizedNodeInputStreamReader.java
b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/LithiumNormalizedNodeInputStreamReader.java
index 573e4ed2faf3f131bbaf6729a1197e94c70f936d..ae8738e60f2d02ae82a797be6e26403f1976200b 100755
(executable)
--- a/
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/LithiumNormalizedNodeInputStreamReader.java
+++ b/
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/LithiumNormalizedNodeInputStreamReader.java
@@
-215,11
+215,10
@@
class LithiumNormalizedNodeInputStreamReader extends ForwardingDataInput impleme
String namespace = readCodedString();
String revision = Strings.emptyToNull(readCodedString());
String namespace = readCodedString();
String revision = Strings.emptyToNull(readCodedString());
- return QNameFactory.create(
new QNameFactory.Key(localName, namespace, revision)
);
+ return QNameFactory.create(
localName, namespace, revision
);
}
}
-
- private String readCodedString() throws IOException {
+ final String readCodedString() throws IOException {
final byte valueType = input.readByte();
switch (valueType) {
case TokenTypes.IS_NULL_VALUE:
final byte valueType = input.readByte();
switch (valueType) {
case TokenTypes.IS_NULL_VALUE:
@@
-254,8
+253,7
@@
class LithiumNormalizedNodeInputStreamReader extends ForwardingDataInput impleme
return new AugmentationIdentifier(readQNameSet());
}
return new AugmentationIdentifier(readQNameSet());
}
- private NodeIdentifier readNodeIdentifier() throws IOException {
- // FIXME: we should have a cache for these, too
+ NodeIdentifier readNodeIdentifier() throws IOException {
return new NodeIdentifier(readQName());
}
return new NodeIdentifier(readQName());
}