mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
Fixes IDEA-290431 False positive for “@NotNull/@Nullable problems” inspection on Map.compute GitOrigin-RevId: fdac0a5eaa0aca3bdd1bef3d9c2eb4c445f7e66e
17 lines
373 B
Java
17 lines
373 B
Java
import typeUse.NotNull;
|
|
import typeUse.Nullable;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
public class MapComputeLambdaAnnotation {
|
|
public static void main(final String[] args) {
|
|
final Map<String, @NotNull String> test = new HashMap<>();
|
|
|
|
test.compute("first", (String a, @Nullable String b) -> {
|
|
assert b == null;
|
|
|
|
return null;
|
|
});
|
|
}
|
|
} |