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:
Tom Copeland
2004-05-21 13:47:44 +00:00
parent 8c29e1f879
commit 5e85b4663f

View File

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