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:
Wouter Zelle
2006-12-11 21:56:56 +00:00
parent 233f5b9bac
commit 6e7d39c4eb

View File

@ -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);