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)
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>

©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.