blob: 2c15fde814c77f0df7cc8975af1bec574f146896 [file] [log] [blame]
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Map;
public final class MissingBoundAnnotations {
@SuppressWarnings("nullness:type.argument")
public static <K extends Comparable<? super K>, V> Collection<K> sortedKeySet(Map<K, V> m) {
ArrayList<K> theKeys = new ArrayList<>(m.keySet());
Collections.sort(theKeys);
return theKeys;
}
}