X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-data-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fdata%2Fimpl%2Fschema%2Fnodes%2FAbstractImmutableNormalizedValueAttrNode.java;h=ec615025ebd5def89fdadb5d04cdac283122cb48;hb=d236fbba845ca58f0fd8070b3afb3c3a749b2efd;hp=e90db03c6440ae77cee001360d6586335f0c2a2a;hpb=bb888b20e6978a994405fa37464e7bb0357c89b6;p=yangtools.git diff --git a/yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/nodes/AbstractImmutableNormalizedValueAttrNode.java b/yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/nodes/AbstractImmutableNormalizedValueAttrNode.java index e90db03c64..ec615025eb 100644 --- a/yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/nodes/AbstractImmutableNormalizedValueAttrNode.java +++ b/yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/nodes/AbstractImmutableNormalizedValueAttrNode.java @@ -7,8 +7,7 @@ */ package org.opendaylight.yangtools.yang.data.impl.schema.nodes; -import com.google.common.base.Objects; -import com.google.common.base.Objects.ToStringHelper; +import com.google.common.base.MoreObjects.ToStringHelper; import com.google.common.collect.ImmutableMap; import java.util.Map; import org.opendaylight.yangtools.yang.common.QName; @@ -53,17 +52,20 @@ public abstract class AbstractImmutableNormalizedValueAttrNode other) { - // We can not call directly getValue.equals because of Empty Type Definition leaves - // which allways have NULL value - if (!Objects.equal(getValue(), other.getValue())) { + // We can not call directly getValue.equals because of Empty Type + // Definition leaves which allways have NULL value + + if (!java.util.Objects.deepEquals(getValue(), other.getValue())) { return false; } -// FIXME: are attributes part of hashCode/equals? -// final Set> tas = getAttributes().entrySet(); -// final Set> oas = container.getAttributes().entrySet(); -// -// return tas.containsAll(oas) && oas.containsAll(tas); + // FIXME: are attributes part of hashCode/equals? + // final Set> tas = getAttributes().entrySet(); + // final Set> oas = + // container.getAttributes().entrySet(); + // + // return tas.containsAll(oas) && oas.containsAll(tas); return true; } + }