BUG-509: Fix a constructor typo/thinko 91/5991/2
authorRobert Varga <rovarga@cisco.com>
Wed, 9 Apr 2014 03:39:58 +0000 (05:39 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Wed, 9 Apr 2014 11:01:24 +0000 (11:01 +0000)
commitf2439a364be2129ab6d50eb15ad2df1a0ecac21f
treec3b1c7c7728711e8d3e94780a68faf4d28a46506
parentef6bd770f1366f84fdbc7ab19fa649953b36197b
BUG-509: Fix a constructor typo/thinko

The 'nested' array should be initialized as empty, but sized for
the size of path.getPath(), as we fill it continuously as we traverse
the tree.

The original initialization also copied path.getPath(), resulting in the
path reported in full and then correctly.

Change-Id: I9a918ced62a845b985459699e23f1f2f1d55cf35
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/TreeNodeUtils.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.