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
258 B
Java
10 lines
258 B
Java
// "Replace with 'Map.copyOf()' call" "true"
|
|
import org.jetbrains.annotations.*;
|
|
import java.util.*;
|
|
|
|
class Scratch {
|
|
public static void main(HashMap<String, String> data) {
|
|
Map<String, String> map = Map.copyOf(data);
|
|
System.out.println(map);
|
|
}
|
|
} |