Fixing Integer.valueOf

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4685 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Allan Caplan
2006-10-16 23:35:27 +00:00
parent 75c4980c4c
commit 2395305df3
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ public class NcssConstructorCount extends AbstractNcssCount {
}
public Object visit(ASTExplicitConstructorInvocation node, Object data) {
return Integer.valueOf( 1 );
return new Integer( 1 );
}
protected void makeViolations(RuleContext ctx, Set p) {

View File

@ -43,7 +43,7 @@ public class NcssTypeCount extends AbstractNcssCount {
}
public Object visit(ASTExplicitConstructorInvocation node, Object data) {
return Integer.valueOf( 1 );
return new Integer( 1 );
}
public Object visit(ASTEnumDeclaration node, Object data) {
@ -54,7 +54,7 @@ public class NcssTypeCount extends AbstractNcssCount {
if ( node.jjtGetParent() instanceof ASTTypeDeclaration ) {
Integer nodeCount = countNodeChildren( node, data );
int count = nodeCount.intValue() - 1;
return Integer.valueOf( count );
return new Integer( count );
}
return countNodeChildren( node, data );
}
@ -68,7 +68,7 @@ public class NcssTypeCount extends AbstractNcssCount {
}
public Object visit(ASTFieldDeclaration node, Object data) {
return Integer.valueOf( 1 );
return new Integer( 1 );
}
protected void makeViolations(RuleContext ctx, Set p) {