mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
fixture-based NullableStuffInspectionTest
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user