Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Lower debugging in sal-clustering-commons
[controller.git]
/
opendaylight
/
md-sal
/
sal-clustering-commons
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
node
/
utils
/
stream
/
ValueTypes.java
diff --git
a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/ValueTypes.java
b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/ValueTypes.java
index 1afc73a3c8deb04a471eee01b437ffd06ed769f3..dd9e102464550702d24d41b4ff8c523354d44b0c 100644
(file)
--- a/
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/ValueTypes.java
+++ b/
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/ValueTypes.java
@@
-59,14
+59,14
@@
final class ValueTypes {
throw new UnsupportedOperationException("Utility class");
}
throw new UnsupportedOperationException("Utility class");
}
- public static
final
byte getSerializableType(Object node) {
- if
(node == null)
{
+ public static byte getSerializableType(Object node) {
+ if
(node == null)
{
return NULL_TYPE;
}
final Byte type = TYPES.get(node.getClass());
if (type != null) {
return NULL_TYPE;
}
final Byte type = TYPES.get(node.getClass());
if (type != null) {
- if
(type == STRING_TYPE && ((String) node).length() >= STRING_BYTES_LENGTH_THRESHOLD )
{
+ if
(type == STRING_TYPE && ((String) node).length() >= STRING_BYTES_LENGTH_THRESHOLD)
{
return STRING_BYTES_TYPE;
}
return type;
return STRING_BYTES_TYPE;
}
return type;