blob: a6b9b17afe42c0db123da0510c85793fea926145 [file] [log] [blame]
package foo;
import javax.annotation.Nullable;
class C {
@Nullable
private String a;
private String b;
public void setA(String <warning descr="Setter parameter for @Nullable field is annotated @ParametersAreNonnullByDefault">a</warning>) {
this.a = a;
}
public void setB(@Nullable String b) { // doesn't lead to a warning because b field is not a parameter
this.b = b;
}
}