Minor optimization to EmptyCatchBlock
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2694 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -20,8 +20,7 @@ The Basic Ruleset contains a collection of good practices which everyone should
|
||||
<![CDATA[
|
||||
//TryStatement
|
||||
[@Catch='true']
|
||||
[FormalParameter/Type/Name[@Image != 'InterruptedException']]
|
||||
[FormalParameter/Type/Name[@Image != 'CloneNotSupportedException']]
|
||||
[FormalParameter/Type/Name[@Image != 'InterruptedException' and @Image != 'CloneNotSupportedException']]
|
||||
/Block[position() > 1]
|
||||
[count(*) = 0]
|
||||
[../@Finally='false' or following-sibling::Block]
|
||||
|
Reference in New Issue
Block a user