testdata for IDEA-26738

This commit is contained in:
Anna Kozlova
2012-11-04 14:59:47 +01:00
parent e2d4d30081
commit 868c0a2595
2 changed files with 20 additions and 0 deletions
@@ -0,0 +1,19 @@
import java.util.Collection;
class UncheckedBug
{
void foo(Collection<String> strings) {
assertThat(strings, hasSize(0));
}
public static <E> Matcher<Collection<? extends E>> hasSize(int <warning descr="Parameter 'size' is never used">size</warning>) {
return null;
}
public static <T> void assertThat(T <warning descr="Parameter 'actual' is never used">actual</warning>, Matcher<? super T> <warning descr="Parameter 'matcher' is never used">matcher</warning>) {
}
interface Matcher<<warning descr="Type parameter 'T' is never used">T</warning>> {}
}