forked from phoedos/pmd
Added test for Finally clause.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1303 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
10
pmd/test-data/OnlyOneReturn5.java
Normal file
10
pmd/test-data/OnlyOneReturn5.java
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
public class OnlyOneReturn5 {
|
||||||
|
public int foo(int x) {
|
||||||
|
try {
|
||||||
|
x += 2;
|
||||||
|
return x;
|
||||||
|
} finally {
|
||||||
|
System.err.println("WunderBuggy!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user