Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@

/**
* {@link PrefixResolver} implementation that loads prefix configuration from jmeter property xpath.namespace.config
* @deprecated This Xalan-based class is scheduled for removal.
*/
@Deprecated(since = "6.0", forRemoval = true)
public class PropertiesBasedPrefixResolver extends PrefixResolverDefault {
private static final Logger log = LoggerFactory.getLogger(PropertiesBasedPrefixResolver.class);
private static final String XPATH_NAMESPACE_CONFIG = "xpath.namespace.config";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
/**
* {@link PrefixResolver} implementation that loads prefix configuration from
* jmeter property xpath.namespace.config
* @deprecated This Xalan-based class is scheduled for removal.
*/
@Deprecated(since = "6.0", forRemoval = true)
public class PropertiesBasedPrefixResolverForXpath2 extends PrefixResolverDefault {
private final Map<String, String> namespaceMap = new HashMap<>();

Expand Down
2 changes: 2 additions & 0 deletions src/core/src/main/java/org/apache/jmeter/util/XPathUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ private static void addToList(XMLStreamReader reader, List<String[]> res) {
* @param document XML Document
* @return {@link PrefixResolver}
*/
@SuppressWarnings("removal") // Used until the Xalan implementation is replaced
private static PrefixResolver getPrefixResolver(Document document) {
return new PropertiesBasedPrefixResolver(document.getDocumentElement());
}
Expand All @@ -592,6 +593,7 @@ public static void validateXPath(Document document, String xpathString) throws T
* @param namespaces String series of prefix/namespace values separateur by line break
* @return {@link PrefixResolver}
*/
@SuppressWarnings("removal") // Used until the Xalan implementation is replaced
private static PrefixResolver getPrefixResolverForXPath2(Document document,String namespaces) {
return new PropertiesBasedPrefixResolverForXpath2(document.getDocumentElement(),namespaces);
}
Expand Down
Loading