forked from phoedos/pmd
Final fix
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@6824 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
parent
9e0de88bc2
commit
7a7381829a
@ -408,7 +408,15 @@ Avoid using final local variables, turn them into fields.
|
||||
<properties>
|
||||
<property name="xpath">
|
||||
<value><![CDATA[
|
||||
//LocalVariableDeclaration[@Final = 'true']
|
||||
//LocalVariableDeclaration[
|
||||
@Final = 'true'
|
||||
and
|
||||
(
|
||||
(count(VariableDeclarator/VariableInitializer) = 0)
|
||||
or
|
||||
(VariableDeclarator/VariableInitializer/Expression/PrimaryExpression/PrimaryPrefix/Literal)
|
||||
)
|
||||
]
|
||||
]]></value>
|
||||
</property>
|
||||
</properties>
|
||||
|
Loading…
x
Reference in New Issue
Block a user