Change Signature: Propagate nullability annotations to overriding methods in Java

This commit is contained in:
Alexey Sedunov
2014-11-28 14:37:51 +03:00
parent c9873428de
commit 250940c824
16 changed files with 231 additions and 37 deletions
@@ -0,0 +1,22 @@
class X extends A {
@Override
String foo(int n) {
return "";
}
}
class Y extends X {
@Override
String foo(int n) {
return super.foo(n);
}
}
class Test {
void test() {
new A().foo(1);
new B().foo(2);
new X().foo(3);
new Y().foo(4);
}
}