mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
9 lines
263 B
Java
9 lines
263 B
Java
// "Wrap 'map' with 'HashMap'" "true-preview"
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
void testComparator() {
|
|
Map<String, Integer> map = new HashMap<>(Math.random() > 0.5 ? Collections.emptyMap() : Collections.singletonMap("foo", 1));
|
|
map.put(123, 456);
|
|
}
|
|
} |