Fix BindingReflections with no revisions 79/72379/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:48:28 +0000 (22:48 +0200)
commit6abeecffa7a64a7c14e02ffa6198cf2276f311d3
tree1b4d4b6d181ee549400fd73c1f4d9f7ddb33e8e8
parentf6e117a1e6a41447823258ac525ffcec4781ef0b
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>
binding/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/util/BindingReflections.java