spring-framework/spring-web/src
Arjen Poutsma 388c8e4aa5 Make sure that MediaType comparators are transitive
Previous to this commit, the specificity and quality comparators
(used by MediaType::sortByQualityValue and MediaType::sortBySpecificity)
could result in IllegalArgumentExceptions when used for sorting.
The underlying reason was that the comparators were not transitive, and
both media types with the same type, and types with the same amount of
parameters, would be considered identical by the comparator (result 0).

This commit ensures that the comparators are transitive.

Closes gh-27488
2021-09-30 16:15:38 +02:00
..
jmh/java/org/springframework Merge branch '5.2.x' 2020-10-20 15:41:02 +02:00
main Make sure that MediaType comparators are transitive 2021-09-30 16:15:38 +02:00
test Remove only leading space for SSE data 2021-09-28 14:56:39 +02:00
testFixtures Upgrade to spring-javaformat 0.0.28 and downgrade to Checkstyle 8.41 2021-09-28 10:29:31 +02:00