Take advantage of YangInstanceIdentifier methods
authorRobert Varga <rovarga@cisco.com>
Fri, 22 May 2015 16:14:47 +0000 (18:14 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 8 Jun 2015 09:00:50 +0000 (09:00 +0000)
commitfba145effe0feb23b8bcefbc6f33b6a21144c65a
treeb68d24468d5612c8f09ae84b4441087b4e95cf05
parentcae655fb4f7cfdc3e9a049fc79a5a85df2effb0e
Take advantage of YangInstanceIdentifier methods

YangInstanceIdentifier provides new, fast methods to acquire parent,
check if it empty and size of path arguments. Take advantage of them.

Change-Id: I527ff8cefb2799cb188ffe294c69e3b81a0d6909
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit ad7a6537b709a72e763835cae683b8cc12401ce1)
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfImpl.java