forked from phoedos/pmd
Failing test case for AvoidThrowingRawExceptionTypes
This commit is contained in:
@ -54,6 +54,20 @@ public class PmdTest {
|
||||
cause = new Throwable();
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
<test-code>
|
||||
<description>False negative when importing another exception</description>
|
||||
<expected-problems>1</expected-problems>
|
||||
<code><![CDATA[
|
||||
import java.io.IOException;
|
||||
|
||||
public class Foo {
|
||||
|
||||
public void bar() {
|
||||
throw new Exception();
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
Reference in New Issue
Block a user