forked from phoedos/pmd
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:
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user