[issue #788] Add more nullity annotations where relevant

(chainable setters, static constructors, builder stuff)
This commit is contained in:
Reinier Zwitserloot committed 2020-01-31 15:58:19 +01:00
1 parent c42bfbae39
commit 3f0fec1872
24 files changed
+112 -41

No files matched your search

@@ -5,10 +5,12 @@ class WithPlain {
this.i = i;
this.foo = foo;
}
@org.springframework.lang.NonNull
@java.lang.SuppressWarnings("all")
public WithPlain withI(final int i) {
return this.i == i ? this : new WithPlain(i, this.foo);
}
@org.springframework.lang.NonNull
@java.lang.SuppressWarnings("all")
public WithPlain withFoo(final int foo) {
return this.foo == foo ? this : new WithPlain(this.i, foo);