Binding generator v2 - uses implement - fix finding target grouping 87/61587/1
authorJie Han <han.jie@zte.com.cn>
Tue, 18 Jul 2017 00:51:00 +0000 (08:51 +0800)
committerJie Han <han.jie@zte.com.cn>
Mon, 14 Aug 2017 08:06:29 +0000 (16:06 +0800)
commitcaed3357924b0599f3dc68d9a84e9af6e5ad1d07
treef3b015c8f152c20273bff4c7185f2f2f0deea402
parent74f818bbbc13591130d1ce74ae3b068526aa0261
Binding generator v2 - uses implement - fix finding target grouping

- can not call findDataSchemaNode to find target grouping since it search
data node first that may find a wrong data node with the same name, here
specially find grouping by getGrouping() first, and that should be always
correct for uses grouping, anyway, in case find nothing,
keep the findDataSchemaNode methord.

Change-Id: Ibef1c5a0e01d1fe36260c76676ae02b926d62296
Signed-off-by: Jie Han <han.jie@zte.com.cn>
(cherry picked from commit 77c25a44eecef69ee0e6611c3c995e90860b1b45)
binding2/mdsal-binding2-generator-impl/src/main/java/org/opendaylight/mdsal/binding/javav2/generator/impl/GenHelperUtil.java