mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-19 01:09:52 +07:00
15 lines
684 B
Java
15 lines
684 B
Java
import typeUse.*;
|
|
import java.util.*;
|
|
|
|
class JC {
|
|
|
|
void testMap() {
|
|
Map<@NotNull String, @NotNull String> <warning descr="Assigning a collection of nullable elements into a collection of non-null elements">m1</warning> = new HashMap<@Nullable String, String>();
|
|
m1 <warning descr="Assigning a collection of nullable elements into a collection of non-null elements">=</warning> new HashMap<String, @Nullable String>();
|
|
m1 = new HashMap<String, String>();
|
|
|
|
Map<@NotNull String, ? extends @NotNull String> <warning descr="Assigning a collection of nullable elements into a collection of non-null elements">m2</warning> = new HashMap<@Nullable String, String>();
|
|
}
|
|
|
|
}
|