Bug 1027: Sort map of instance-identifiers and data by length. 55/8455/1
authorTony Tkacik <ttkacik@cisco.com>
Mon, 30 Jun 2014 12:53:27 +0000 (14:53 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Mon, 30 Jun 2014 12:53:27 +0000 (14:53 +0200)
commit22000c97031a397b247a75ede2383f6ae792efc9
tree9322fdaf9fd33d58335512ae75564fead14e3942
parent8ce1f7c0dc98e3f49698325187ef5e895a0617e8
Bug 1027: Sort map of instance-identifiers and data by length.

In order to have more reliable deserialization of Maps
of Bidning-Independented data to Binding-Aware
entries should be sorted by their length, with shorter
ones beforehand, since codecs for them have higher
probability to be known.

Parent codecs also contains references to child-classes
which may be never used in new context so this
makes deserialization more predicable and easier to debug.

Change-Id: Iad1490f893e946a2a019c88570325dcfb11c244d
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/AbstractForwardedDataBroker.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.