mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 04:07:30 +07:00
GitOrigin-RevId: 436a4cc574266f21cdc83a6ef8e50b6991d749ea
14 lines
509 B
Java
14 lines
509 B
Java
import typeUse.*;
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
|
|
public @NotNull Map<@NotNull String, @NotNull ArrayList<@NotNull String>> getDataBroken() {
|
|
ArrayList<@Nullable String> arrayList = new ArrayList<>();
|
|
arrayList.add(null);
|
|
|
|
@NotNull Map<@NotNull String, @NotNull ArrayList<@Nullable String>> map = new HashMap<>();
|
|
map.put("x", arrayList);
|
|
return <warning descr="Returning a class with nullable type arguments when a class with not-null type arguments is expected">map</warning>;
|
|
}
|
|
} |