blob: da9b6603c51cf74ae3a2811447e4bef0c27cc1d1 [file]
class VoidIsAlwaysNull {
// IDEA-195506
void foo(Void p) {
System.out.println(p.<warning descr="Method invocation 'toString' will produce 'NullPointerException'">toString</warning>());
}
Void noCastReport() {
return (Void)null;
}
Void noCastReport2() {
Object var = null;
return (Void)var;
}
}