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%2FPathArgumentTypes.java;h=b372d8f9157ae645b56ff2c99d3c509f77074e5a;hb=da9ee8c80328bd6e21064e44f95f29ffc1e99d41;hp=dd140ca410156d028175243dbd66fba67e339794;hpb=7fd8bdbb1f974e37a18a486f4662ed4e6518406e;p=controller.git diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/PathArgumentTypes.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/PathArgumentTypes.java index dd140ca410..b372d8f915 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/PathArgumentTypes.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/PathArgumentTypes.java @@ -23,12 +23,11 @@ final class PathArgumentTypes { throw new UnsupportedOperationException("Utility class"); } - private static final Map, Byte> CLASS_TO_ENUM_MAP = - ImmutableMap., Byte>builder(). - put(YangInstanceIdentifier.AugmentationIdentifier.class, AUGMENTATION_IDENTIFIER). - put(YangInstanceIdentifier.NodeIdentifier.class, NODE_IDENTIFIER). - put(YangInstanceIdentifier.NodeIdentifierWithPredicates.class, NODE_IDENTIFIER_WITH_PREDICATES). - put(YangInstanceIdentifier.NodeWithValue.class, NODE_IDENTIFIER_WITH_VALUE).build(); + private static final Map, Byte> CLASS_TO_ENUM_MAP = ImmutableMap., Byte>builder() + .put(YangInstanceIdentifier.AugmentationIdentifier.class, AUGMENTATION_IDENTIFIER) + .put(YangInstanceIdentifier.NodeIdentifier.class, NODE_IDENTIFIER) + .put(YangInstanceIdentifier.NodeIdentifierWithPredicates.class, NODE_IDENTIFIER_WITH_PREDICATES) + .put(YangInstanceIdentifier.NodeWithValue.class, NODE_IDENTIFIER_WITH_VALUE).build(); public static byte getSerializablePathArgumentType(YangInstanceIdentifier.PathArgument pathArgument) { final Byte type = CLASS_TO_ENUM_MAP.get(pathArgument.getClass());