forked from phoedos/pmd
Fixed little bug
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4867 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -148,7 +148,7 @@ public class DaaRule extends AbstractRule implements Executable {
|
||||
&& !violationAlreadyExists(type, var, startLine, endLine)
|
||||
&& node != null) {
|
||||
final RuleContext ctx = (RuleContext) data;
|
||||
final Object[] params = new Object[] { type, var, Integer.valueOf(startLine), Integer.valueOf(endLine) };
|
||||
final Object[] params = new Object[] { type, var, new Integer(startLine), new Integer(endLine) };
|
||||
String msg = type;
|
||||
if (getMessage() != null) {
|
||||
msg = MessageFormat.format(getMessage(), params);
|
||||
|
Reference in New Issue
Block a user