forked from phoedos/pmd
UnnecessaryParentheses now checks all expressions, not just return statements
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@6126 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
parent
cfde99a990
commit
f9590d218a
@ -3,6 +3,7 @@
|
||||
Fixed false positive in UnusedImports: javadoc comments are parsed to check @see and other tags
|
||||
Fixed parsing bug: constant fields in annotation classes
|
||||
Bug fix: NPE in MoreThanOneLogger
|
||||
UnnecessaryParentheses now checks all expressions, not just return statements
|
||||
|
||||
April 11, 2008 - 4.2.1:
|
||||
|
||||
|
@ -290,8 +290,7 @@ making them look like a function call.
|
||||
<property name="xpath">
|
||||
<value>
|
||||
<![CDATA[
|
||||
//ReturnStatement
|
||||
/Expression
|
||||
//Expression
|
||||
/PrimaryExpression
|
||||
/PrimaryPrefix
|
||||
/Expression[count(*)=1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user