本文整理了Java中net.sourceforge.pmd.Rule.isDeprecated
方法的一些代码示例,展示了Rule.isDeprecated
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rule.isDeprecated
方法的具体详情如下:
包路径:net.sourceforge.pmd.Rule
类名称:Rule
方法名:isDeprecated
[英]Gets whether this Rule is deprecated. A deprecated Rule is one which:
代码示例来源:origin: pmd/pmd
@Override
public boolean isDeprecated() {
return rule.isDeprecated();
}
代码示例来源:origin: pmd/pmd
/**
* A ruleset is considered deprecated, if it only contains rule references
* and all rule references are deprecated.
*
* @param ruleset
* @return
*/
public static boolean isRuleSetDeprecated(RuleSet ruleset) {
boolean result = true;
for (Rule rule : ruleset.getRules()) {
if (!(rule instanceof RuleReference) || !rule.isDeprecated()) {
result = false;
break;
}
}
return result;
}
代码示例来源:origin: pmd/pmd
if (rule.isDeprecated()) {
countDeprecated++;
if (rulesetDeprecated || !r.getRule().isDeprecated()) {
代码示例来源:origin: pmd/pmd
link += "#" + rule.getName().toLowerCase(Locale.ROOT);
lines.add("* [" + rule.getName() + "](" + link + "): "
+ (rule.isDeprecated() ? DEPRECATION_LABEL_SMALL : "")
+ getShortRuleDescription(rule));
代码示例来源:origin: pmd/pmd
if (rule.isDeprecated()) {
lines.add(DEPRECATION_LABEL);
lines.add("");
代码示例来源:origin: pmd/pmd
if (warnDeprecated && referencedRule.isDeprecated()) {
if (referencedRule instanceof RuleReference) {
RuleReference ruleReference = (RuleReference) referencedRule;
代码示例来源:origin: pmd/pmd
rule.getMinimumLanguageVersion(), rule.getMaximumLanguageVersion(), rule.isDeprecated(),
rule.getName(), rule.getSince(), null, rule.getMessage(), rule.getExternalInfoUrl(),
rule.getRuleClass(), rule.isDfa(), rule.isTypeResolution(), rule.isMultifile(),
代码示例来源:origin: net.sourceforge.pmd/pmd-core
@Override
public boolean isDeprecated() {
return rule.isDeprecated();
}
代码示例来源:origin: net.sourceforge.pmd/pmd-core
if (rule.isDeprecated()) {
countDeprecated++;
if (rulesetDeprecated || !r.getRule().isDeprecated()) {
代码示例来源:origin: net.sourceforge.pmd/pmd-core
if (warnDeprecated && referencedRule.isDeprecated()) {
if (referencedRule instanceof RuleReference) {
RuleReference ruleReference = (RuleReference) referencedRule;
代码示例来源:origin: net.sourceforge.pmd/pmd-core
rule.getMinimumLanguageVersion(), rule.getMaximumLanguageVersion(), rule.isDeprecated(),
rule.getName(), rule.getSince(), null, rule.getMessage(), rule.getExternalInfoUrl(),
rule.getRuleClass(), rule.isDfa(), rule.isTypeResolution(), rule.isMultifile(),
内容来源于网络,如有侵权,请联系作者删除!