X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Futils%2FClusterUtils.java;h=927dca43e6b49da627bfebbd1651b677915a357f;hp=dea8320d0a020a634bd6f8937035efe92a37445a;hb=69584f4fa7b55eb89d28b3b1d8003b7c4918b5b6;hpb=1c992d01fb7be6dfb310ac82839a8f1876d890de diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ClusterUtils.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ClusterUtils.java index dea8320d0a..927dca43e6 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ClusterUtils.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ClusterUtils.java @@ -5,7 +5,6 @@ * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ - package org.opendaylight.controller.cluster.datastore.utils; import org.opendaylight.controller.cluster.access.concepts.MemberName; @@ -82,14 +81,12 @@ public final class ClusterUtils { builder.append(p.getNodeType().getLocalName()); if (p instanceof NodeIdentifierWithPredicates) { builder.append("-key_"); - ((NodeIdentifierWithPredicates) p).getKeyValues().forEach((key, value) -> { - builder.append(key.getLocalName()); - builder.append(value); - builder.append("-"); + ((NodeIdentifierWithPredicates) p).entrySet().forEach(entry -> { + builder.append(entry.getKey().getLocalName()).append(entry.getValue()).append('-'); }); - builder.append("_"); + builder.append('_'); } - builder.append("!"); + builder.append('!'); }); return builder.toString(); }