mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 11:29:28 +07:00
The annotation may differ, depending on library used. Also, it could be a container annotation like @NullMarked or @NotNullByDefault, so let's use more neutral wording GitOrigin-RevId: cb4923f5ec3974f56ec1b6763c2405c1471bf601
18 lines
371 B
Java
18 lines
371 B
Java
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
class A {
|
|
@Nullable
|
|
private final String xxxx = "";
|
|
|
|
public String getXxxx() {
|
|
return xxxx;
|
|
}
|
|
}
|
|
|
|
class B {
|
|
|
|
@NotNull
|
|
String x = <warning descr="Expression 'new A().getXxxx()' might evaluate to null but is assigned to a non-null variable">new A().getXxxx()</warning>;
|
|
}
|