mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
18 lines
394 B
Java
18 lines
394 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 variable that is annotated with @NotNull">new A().getXxxx()</warning>;
|
|
}
|