Optimize QName.withoutRevision() 46/68846/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 27 Feb 2018 23:15:26 +0000 (00:15 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 27 Feb 2018 23:17:00 +0000 (00:17 +0100)
commit40f290daa77f120a91de23a28237802296c4de79
treef05284ae42a50d47b3967f2ca4db151e859bc982
parentbbe4be8b68ecc43a905be9e0dd6a83e4abeac3d1
Optimize QName.withoutRevision()

This method is used in a few users to implement loose matches. Optimize
it to not check localName, as that has already been checked. Also introduce
a mirror QNameModule method.

Change-Id: Id1045d79677fd4c0aeb5069f6b151530c545c20b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/QName.java
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/QNameModule.java