mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 05:09:37 +07:00
11 lines
249 B
Java
11 lines
249 B
Java
// "Replace with 'Map.of()' call" "true"
|
|
import java.util.*;
|
|
|
|
public class Test {
|
|
private static final Map<Integer, String> myMap2 = Collections.unmodifiab<caret>leMap(new HashMap<>() {
|
|
{
|
|
put(1, "one");
|
|
put(2, "two");
|
|
}
|
|
});
|
|
} |