From 8913660672f8cf8a634334674927a85e4aa96792 Mon Sep 17 00:00:00 2001 From: Ryan Gustafson Date: Mon, 30 Jun 2008 05:05:51 +0000 Subject: [PATCH] Widen return type from Node.findChildNodesWithXPath() to List from List allow casting results to a List of subclasses of Node (e.g. List). git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6303 51baf565-9d33-0410-a72c-fc3788e3496d --- .../net/sourceforge/pmd/lang/rule/AbstractRuleViolation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd/src/net/sourceforge/pmd/lang/rule/AbstractRuleViolation.java b/pmd/src/net/sourceforge/pmd/lang/rule/AbstractRuleViolation.java index 333598c762..36463dda3a 100644 --- a/pmd/src/net/sourceforge/pmd/lang/rule/AbstractRuleViolation.java +++ b/pmd/src/net/sourceforge/pmd/lang/rule/AbstractRuleViolation.java @@ -69,7 +69,7 @@ public abstract class AbstractRuleViolation implements RuleViolation { String xpath = rule.getStringProperty(Rule.VIOLATION_SUPPRESS_XPATH_PROPERTY); if (xpath != null) { try { - List children = node.findChildNodesWithXPath(xpath); + List children = node.findChildNodesWithXPath(xpath); if (children != null && !children.isEmpty()) { suppressed = true; }