updated to PMD3.4, fixed creating of RuleViolation in AbstractRules

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4074 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Radim Kubacki
2005-12-16 17:24:22 +00:00
parent e1dc4a114e
commit 5ff072aaba
8 changed files with 14 additions and 11 deletions

View File

@ -1,3 +1,6 @@
Version 1.4
- Updated pmd to version 3.4
Version 1.3
- Updated pmd to version 3.3
- Works with IDE 5.0

View File

@ -2,8 +2,8 @@
<import file="nbproject/build-impl.xml"/>
<property name="pmd.jar" value="pmd-3.3.jar"/>
<property name="VERSION" value="1.3"/>
<property name="pmd.jar" value="pmd-3.4.jar"/>
<property name="VERSION" value="1.4"/>
<property file="build.ant.properties"/>

View File

@ -93,10 +93,10 @@ public class ForeignBundleCodeRule extends AbstractRule {
pN = (ASTClassOrInterfaceType)pRefT.jjtGetChild(0);
}
if (pN != null && !isCorrectClass (node, pN)) {
ctx.getReport().addRuleViolation(createRuleViolation(
addViolation(
ctx,
node /*child.getBeginLine()*/,
MessageFormat.format(getMessage(), new Object[] {pN.getImage()})));
MessageFormat.format(getMessage(), new Object[] {pN.getImage()}));
}
}
}

View File

@ -62,7 +62,7 @@ public class MissingPrivateInnerClassConstructorRule extends AbstractRule {
}*/
if (!ok) {
RuleContext ctx = (RuleContext)data;
ctx.getReport().addRuleViolation(createRuleViolation(ctx, node));
addViolation(ctx, node);
}
return super.visit(node, data);

View File

@ -73,7 +73,7 @@ public class StaticBundleCodeRule extends AbstractRule {
}
SimpleNode var = (SimpleNode)field.jjtGetChild(1).jjtGetChild(0);
ctx.getReport().addRuleViolation(createRuleViolation(ctx, field, MessageFormat.format(getMessage(), new Object[] {var.getImage()})));
addViolation(ctx, field, MessageFormat.format(getMessage(), new Object[] {var.getImage()}));
}
}
super.visit(node, data);

View File

@ -1,5 +1,5 @@
Manifest-Version: 1.0
OpenIDE-Module-Specification-Version: 1.3
OpenIDE-Module-Specification-Version: 1.4
Created-By: Ole-Martin Mørk and Gunnlaugur Þór Briem and Radim Kubacki
OpenIDE-Module: pmd
OpenIDE-Module-Install: pmd/PMDInstall.class

View File

@ -1,6 +1,6 @@
extra.module.files=\
modules/ext/jaxen-1.1-beta-7.jar \
modules/ext/pmd-3.3.jar \
modules/ext/pmd-3.4.jar \
modules/ext/jakarta-oro-2.0.jar \
modules/ext/nbpmdrules.jar
nbm.distribution=http://pmd.sourceforge.net/

View File

@ -20,9 +20,9 @@
</class-path-extension>
<class-path-extension>
<!-- Deployed path, relative to dir containing module: -->
<runtime-relative-path>ext/pmd-3.3.jar</runtime-relative-path>
<runtime-relative-path>ext/pmd-3.4.jar</runtime-relative-path>
<!-- Path of library in your own sources, relative to project basedir: -->
<binary-origin>lib/pmd-3.3.jar</binary-origin>
<binary-origin>lib/pmd-3.4.jar</binary-origin>
</class-path-extension>
<class-path-extension>
<!-- Deployed path, relative to dir containing module: -->
@ -150,7 +150,7 @@
<public-packages/>
<extra-compilation-unit>
<package-root>libsrc</package-root>
<classpath>lib/pmd-3.3.jar</classpath>
<classpath>lib/pmd-3.4.jar</classpath>
<built-to>build/libclasses</built-to>
<built-to>${cluster}/modules/ext/nbpmdrules.jar</built-to>
</extra-compilation-unit>