mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 04:07:30 +07:00
GitOrigin-RevId: 29497c955c64040544a3bf4af0af0edd08763201
15 lines
738 B
Java
15 lines
738 B
Java
import typeUse.*;
|
|
import java.util.*;
|
|
|
|
class JC {
|
|
|
|
void testMap() {
|
|
Map<@NotNull String, @NotNull String> <warning descr="Assigning a class with nullable type arguments when a class with not-null type arguments is expected">m1</warning> = new HashMap<@Nullable String, String>();
|
|
m1 <warning descr="Assigning a class with nullable type arguments when a class with not-null type arguments is expected">=</warning> new HashMap<String, @Nullable String>();
|
|
m1 = new HashMap<String, String>();
|
|
|
|
Map<@NotNull String, ? extends @NotNull String> <warning descr="Assigning a class with nullable type arguments when a class with not-null type arguments is expected">m2</warning> = new HashMap<@Nullable String, String>();
|
|
}
|
|
|
|
}
|