IDEA-120586 @ParametersAreNonnullByDefault support broken

This commit is contained in:
peter
2014-02-11 15:31:13 +01:00
parent b189061b82
commit 581d2b73aa
8 changed files with 138 additions and 88 deletions
@@ -0,0 +1,17 @@
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;
}
}