mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
testdata for IDEA-26738
This commit is contained in:
+19
@@ -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>> {}
|
||||
}
|
||||
Reference in New Issue
Block a user