mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 06:39:38 +07:00
12 lines
342 B
Java
12 lines
342 B
Java
// "Wrap with unmodifiable map" "true-preview"
|
|
import java.util.Collections;
|
|
import java.util.NavigableMap;
|
|
import java.util.SortedMap;
|
|
import java.util.TreeMap;
|
|
|
|
class C {
|
|
SortedMap<String, Integer> test() {
|
|
NavigableMap<String, Integer> result = new TreeMap<>();
|
|
return Collections.unmodifiableSortedMap(result);
|
|
}
|
|
} |