Fixed UnnecessaryConstructor
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3358 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -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)]
|
||||
|
Reference in New Issue
Block a user