blob: e698d04c9e5300e253e4ebfce34eb5b0e371f907 [file] [log] [blame]
class SomeClientClass {
{
new Abstract<String>() {
void foo() {
if (<warning descr="Condition 'field instanceof String' is redundant and can be replaced with '!= null'">field instanceof String</warning>) {
}
}
};
new Abstract<Integer>() {
void foo() {
if (<warning descr="Condition 'field instanceof Integer' is redundant and can be replaced with '!= null'">field instanceof Integer</warning>) {
}
}
};
}
}
class Abstract<T> {
T field;
}