disable parameter nullability inference in presence of container defaults (IDEA-191576)

This commit is contained in:
peter
2018-06-20 09:12:22 +02:00
parent d60040d2ea
commit 83fdd6aa7a
3 changed files with 27 additions and 9 deletions
@@ -0,0 +1,11 @@
@javax.annotation.ParametersAreNonnullByDefault
interface I {
void foo(Object o);
}
@javax.annotation.ParametersAreNonnullByDefault
final class A implements I {
public void foo(Object o) {
o.toString();
}
}