Fixed UnnecessaryConstructor

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3358 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2005-03-09 23:33:45 +00:00
parent 8502055ebb
commit 1c25dd374a

View File

@ -20,9 +20,9 @@ most people really dislike :-)
<property name="xpath">
<value>
<![CDATA[
//UnmodifiedClassDeclaration
/ClassBody[count(ClassBodyDeclaration/ConstructorDeclaration)=1]
/ClassBodyDeclaration/ConstructorDeclaration
//ClassOrInterfaceDeclaration
/ClassOrInterfaceBody[count(ClassOrInterfaceBodyDeclaration/ConstructorDeclaration)=1]
/ClassOrInterfaceBodyDeclaration/ConstructorDeclaration
[@Public='true']
[not(FormalParameters/*)]
[not(BlockStatement)]