X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fnode%2Futils%2Fstream%2FValueTypes.java;h=dd9e102464550702d24d41b4ff8c523354d44b0c;hb=43f18b836755a1167e831687a674d26611f9d3b2;hp=1afc73a3c8deb04a471eee01b437ffd06ed769f3;hpb=5c3e3812eca4e7a06c69c376037578fae49828a2;p=controller.git 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 1afc73a3c8..dd9e102464 100644 --- 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"); } - 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) { - 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;