mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-12 04:36:59 +07:00
Fixes IDEA-349386 Don't suggest List/Set/Map.copyOf when elements are annotated @Nullable GitOrigin-RevId: f2c1298394f204732437d304f68272f6cf406cc0
10 lines
292 B
Java
10 lines
292 B
Java
// "Replace with 'Map.copyOf()' call" "false"
|
|
import org.jetbrains.annotations.*;
|
|
import java.util.*;
|
|
|
|
class Scratch {
|
|
public static void main(HashMap<@Nullable String, String> data) {
|
|
var map = Collections.<caret>unmodifiableMap(new HashMap<>(data));
|
|
System.out.println(map);
|
|
}
|
|
} |