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:
Xavier Le Vourch 2008-05-19 03:15:40 +00:00
parent cfde99a990
commit f9590d218a
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -290,8 +290,7 @@ making them look like a function call.
<property name="xpath">
<value>
<![CDATA[
//ReturnStatement
/Expression
//Expression
/PrimaryExpression
/PrimaryPrefix
/Expression[count(*)=1]