mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
11 lines
267 B
Java
11 lines
267 B
Java
// "Wrap with unmodifiable map" "true-preview"
|
|
import java.util.Collections;
|
|
import java.util.Map;
|
|
import java.util.HashMap;
|
|
|
|
class C {
|
|
Map<String, Integer> test() {
|
|
var result = new HashMap<>();
|
|
return Collections.unmodifiableMap(result);
|
|
}
|
|
} |