Do not use jaxen XPath 37/71537/2
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 28 Apr 2018 10:37:52 +0000 (12:37 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 28 Apr 2018 10:51:41 +0000 (12:51 +0200)
commit70fccf194fb80d172602950752d3259c58f5bcfc
tree26fc8e2e5530a38ecdf0d7d716f774561fa07705
parent45c3a2b79bfa3e4b27093198434d00e495d56c1f
Do not use jaxen XPath

We are really interested only in Expr and its evaluation, hence we
can skip the BaseXPath class, which is hiding things from us.

This also lowers the memory overhead of compiled expression very
slightly and improves performance, as the result is not needlessly
obfuscated via a singleton list.

Furthermore we no longer go through XPathReaderFactory, which incurs
reflection overhead, but rather instantiate
org.jaxen.saxpath.base.XPathReader directly.

Change-Id: I7fd315c17f4013f927e724226408ba12f8445606
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-jaxen/src/main/java/org/opendaylight/yangtools/yang/data/jaxen/JaxenXPath.java