BUG-8123: fix URL naming mixup 12/56012/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 25 Apr 2017 17:17:33 +0000 (19:17 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 25 Apr 2017 17:19:02 +0000 (19:19 +0200)
commitc2ca0aa4ddb933bbb4b1f8701c92c4f0d22c08a7
tree8d3691ce19b1f1613a58b5d1e40976c33f96071b
parent8539503c13746b5b765c9aa9d249a85462f69d7f
BUG-8123: fix URL naming mixup

As it turns out URL.getFile() does the wrong thing, leading to us
taking the whole path as the module name, resulting in wrong comparison.

Change the code to analyze URL.getPath(), stripping it down to the
last component.

Change-Id: Ica3e387caf2924712151f4da5939487872f8e98c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/repo/YangTextSchemaContextResolver.java