Forgot to update this one as well...

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6639 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Brian Remedios
2008-10-19 01:07:46 +00:00
parent 302ba97ed0
commit 4d19a0632a

View File

@ -8,6 +8,7 @@ import java.util.List;
import java.util.Map;
import net.sourceforge.pmd.PropertyDescriptor;
import net.sourceforge.pmd.Rule;
import net.sourceforge.pmd.RulePriority;
import net.sourceforge.pmd.RuleSetReference;
import net.sourceforge.pmd.lang.Language;
@ -246,4 +247,16 @@ public class RuleReference extends AbstractDelegateRule {
}
return false;
}
/**
* @see Rule#hasDescriptor(PropertyDescriptor)
*/
public boolean hasDescriptor(PropertyDescriptor<?> descriptor) {
if (propertyValues.isEmpty()) {
getPropertiesByPropertyDescriptor(); // compute it
}
return propertyValues.containsKey(descriptor);
}
}