Bug 1984, Bug 2005: Changed valueEquals to work with null values. 13/11413/1
authorTony Tkacik <ttkacik@cisco.com>
Sun, 21 Sep 2014 07:01:36 +0000 (09:01 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Sun, 21 Sep 2014 07:01:40 +0000 (09:01 +0200)
commit7f0c1aa806f952584ac71feecbc17f3834705510
tree35d93a625d9ec3aeda2f27150b62afd413e3cedb
parenta24c4089733f94528a3e2f4af9bdc6102974bf53
Bug 1984, Bug 2005: Changed valueEquals to work with null values.

ImmutableNode implementation hashCode and equals did not worked
properly with null values, which are rare, but allowed by
typedef empty statement.

Methods were fixed to work properly with null values and
added comment which explicitly says, that nulls are allowed
because of empty type.

Change-Id: I8fa3431bae19783dfbc0e2d3684c2e981e11da46
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/nodes/AbstractImmutableNormalizedValueAttrNode.java
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/nodes/AbstractImmutableNormalizedValueNode.java