mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 03:12:15 +07:00
#IDEA-377335 Fixed Merge-request: IJ-MR-179742 Merged-by: Marcin Mikosik <marcin.mikosik@jetbrains.com> GitOrigin-RevId: 8ea1a93c936c5fe2e84bcee578ac9d21f921535f
28 lines
627 B
Java
28 lines
627 B
Java
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
import org.jetbrains.annotations.NotNullByDefault;
|
|
import java.util.List;
|
|
|
|
@NotNullByDefault
|
|
class FromDemo {
|
|
@NotNull String m(@NotNull String s, @Nullable String s2) {
|
|
return "";
|
|
}
|
|
|
|
@NotNull String f;
|
|
|
|
List<@NotNull String> param(@NotNull String @NotNull [] @NotNull [] a) {
|
|
return List.of();
|
|
}
|
|
|
|
void fun() {
|
|
@Nullable String variableWhereAnnotationMakesSense = OtherClass.returnSomething();
|
|
}
|
|
}
|
|
|
|
class OtherClass {
|
|
static String returnSomething() {
|
|
return Math.random() > 0.5 ? "not null" : null;
|
|
}
|
|
}
|