fixture-based NullableStuffInspectionTest

This commit is contained in:
peter
2014-02-10 18:34:10 +01:00
parent 3104edd1b9
commit 4757fc901f
18 changed files with 244 additions and 598 deletions
@@ -0,0 +1,21 @@
import org.jetbrains.annotations.*;
class Test {
@Nullable private final String baseFile;
@Nullable private final String baseFile1;
public Test(@NotNull String <warning descr="Constructor parameter for @Nullable field is annotated @NotNull">baseFile</warning>) {
this.baseFile = baseFile;
this.baseFile1 = null;
}
public Test(@NotNull String baseFile1, boolean a) {
this.baseFile1 = baseFile1;
if (baseFile1.contains("foo")) {
this.baseFile = null;
} else {
this.baseFile = null;
}
}
}