mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 05:09:37 +07:00
13 lines
292 B
Java
13 lines
292 B
Java
// "Wrap with unmodifiable map" "true-preview"
|
|
import java.util.Collections;
|
|
import java.util.Map;
|
|
import java.util.HashMap;
|
|
|
|
class C {
|
|
void test() {
|
|
var result = new HashMap<>();
|
|
foo(Collections.unmodifiableMap(result));
|
|
}
|
|
|
|
void foo(Map<String, Integer> map) {}
|
|
} |