[java] Add failing tests for #2025
This commit is contained in:
@@ -500,6 +500,34 @@ import java.io.FileInputStream;
|
||||
public class Derived extends FileInputStream {
|
||||
/** @see #FileInputStream(File, File[]) */
|
||||
void main() {}
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description>#2025 False Positive in UnusedImports for params when using @see with FQCN</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
import spark.Response; // flaged, should not
|
||||
|
||||
/**
|
||||
* @see foo.bar.MyController#startTransaction(Response)
|
||||
*/
|
||||
public class VendingV2PaymentRequest {
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description>#2025 False Positive in UnusedImports for params when using @link with FQCN</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
import spark.Request; // flaged, should not
|
||||
|
||||
/**
|
||||
* {@link foo.bar.MyController#startTransaction(Request)}
|
||||
*/
|
||||
public class VendingV2PaymentRequest {
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
Reference in New Issue
Block a user