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 |
||
|---|---|---|
| .. | ||
| src | ||
| spring-core.gradle | ||