Reproducing bug False 2606609: 'UnusedImports' positive in package-info.java
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@6849 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -202,4 +202,18 @@ public class Foo {
|
|||||||
}
|
}
|
||||||
]]></code>
|
]]></code>
|
||||||
</test-code>
|
</test-code>
|
||||||
</test-data>
|
|
||||||
|
<test-code regressionTest="false">
|
||||||
|
<description><![CDATA[
|
||||||
|
Bug 2606609 : False "UnusedImports" positive in package-info.java
|
||||||
|
]]></description>
|
||||||
|
<expected-problems>0</expected-problems>
|
||||||
|
<code><![CDATA[
|
||||||
|
@DefaultAnnotation(NonNull.class)
|
||||||
|
package net.sourceforge.pmd.test;
|
||||||
|
|
||||||
|
public class Bug {}
|
||||||
|
]]></code>
|
||||||
|
</test-code>
|
||||||
|
|
||||||
|
</test-data>
|
||||||
|
Reference in New Issue
Block a user