Bug 1027: Sort map of instance-identifiers and data by length.
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)
commit01c691fa866f51773c3196a0c2f34e7f917f22ba
tree25a42b18a2227f4422c21b097ce41b37f6fdb10a
parent4029efa3313f4290ccde353d230528933dc270bb
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