Hi, On Wed, Aug 11, 2010 at 5:05 AM, Mattmann, Chris A (388J) <[email protected]> wrote: > Thanks Ken. Jukka, WDYT?
Yeah, sorry for not reacting to this earlier (I was on vacation in July and didn't pay too much attention to email). The internal parameter map inside MediaType is a SortedMap for increased consistency when accessing the parameters (no need to worry about the ordering). In revision 956017 I made that map unmodifiable to better enforce the immutable nature of MediaType. I also changed the return type of getParameters() to give a better hint of the kind of map that was being returned. I didn't realize that this breaks binary compatibility of the method, so it's obviously a good idea to change the return type back to a Map and perhaps add a note in the javadoc that the returned map is guaranteed to be sorted. BR, Jukka Zitting
