Fix BindingReflections with no revisions 80/72380/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 28 May 2018 20:48:28 +0000 (22:48 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 28 May 2018 20:51:43 +0000 (22:51 +0200)
commit0c8798331e05d669a59ff63cad5bc4b50fbcea05
tree9fdd783db867aa995fc95eff148c3755288d8948
parent395c945af30be1669da796f1f3daff9b954fcef8
Fix BindingReflections with no revisions

When a module does not have a revision statement, we end up using
.norev instead of the usual .revXXYYZZ package component. This means
that valid Binding classes are not recognized by
getModelRootPackageName(), throwing IllegalArgumentException.

Fix this by updating matcher pattern to account for .norev being
a possibility.

Change-Id: Ifeede5cd2371a73eca7b189af3f3ac95db4acb9d
JIRA: MDSAL-346
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 6abeecffa7a64a7c14e02ffa6198cf2276f311d3)
binding/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/util/BindingReflections.java