-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: Make KiwiMaps.newTreeMap return a SortedMap instead of just Map #484
Comments
Odd...I just looked at the original (internal) |
So I can remember, we first encountered the need to cast to a |
I was wrong...it does return |
Signature should be: public static <K extends Comparable, V> SortedMap<K, V> newTreeMap(Object... items) |
There are a number of instances where libraries need SortedMap instances and using
newTreeMap
returns a Map which causes compile time issues. Since TreeMap implements SortedMap which implements Map, this should work in most cases.The text was updated successfully, but these errors were encountered: