Write nullability annotations on extension receiver parameters

#KT-5429 Fixed
This commit is contained in:
Alexander Udalov
2016-03-09 12:51:24 +03:00
parent 597c571f25
commit 994dc46bcd
5 changed files with 28 additions and 20 deletions
@@ -1,18 +1,20 @@
<caret>import org.jetbrains.annotations.NotNull;
interface J<A> extends T<A> {
@Override
<B> int foofoofoo(U<A> a, B b);
<B> int foofoofoo(@NotNull U<A> a, B b);
}
abstract class J1<X> implements J<U<X>> {
@Override
public <C> int foofoofoo(U<U<X>> xu, C c) {
public <C> int foofoofoo(@NotNull U<U<X>> xu, C c) {
throw new UnsupportedOperationException();
}
}
abstract class J2 extends J1<String> {
@Override
public <C> int foofoofoo(U<U<String>> xu, C c) {
public <C> int foofoofoo(@NotNull U<U<String>> xu, C c) {
throw new UnsupportedOperationException();
}
}
}