BUG-865: do not use InstanceIdentifier.getPath() 50/8850/1
authorRobert Varga <rovarga@cisco.com>
Tue, 8 Jul 2014 22:01:01 +0000 (00:01 +0200)
committerRobert Varga <rovarga@cisco.com>
Wed, 9 Jul 2014 11:55:47 +0000 (13:55 +0200)
commit691847081c5290570981fa4d031f742f6d913e8b
tree9cbb23fe9015fd6751c69f28ab2509cf2d3c9f8c
parent903b52be0d159b06d1ed02a40957f97ccc0f0500
BUG-865: do not use InstanceIdentifier.getPath()

The method was only used to speed up an ArrayList, which in turn was only
ever used for debugging. Instead of using a precodintion which forces us
to do this, just track the offset of the offending entry. If we find
ourselves in the error territory, we can then take getPathArguments(),
limit it to proper size and print it out.

Change-Id: I3c1786fe77cef005a6463c22b5be8bb8672c26bb
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/TreeNodeUtils.java