Skip to content

Commit

Permalink
Fix condition for "Too many elements" in MimeTypeUtils.sortBySpecific…
Browse files Browse the repository at this point in the history
…ity()

See gh-31254
Closes gh-31769
  • Loading branch information
izeye authored and sbrannen committed Dec 6, 2023
1 parent fdcea58 commit 7b95bd7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ public static String toString(Collection<? extends MimeType> mimeTypes) {
*/
public static <T extends MimeType> void sortBySpecificity(List<T> mimeTypes) {
Assert.notNull(mimeTypes, "'mimeTypes' must not be null");
if (mimeTypes.size() >= 50) {
if (mimeTypes.size() > 50) {
throw new InvalidMimeTypeException(mimeTypes.toString(), "Too many elements");
}

Expand Down

0 comments on commit 7b95bd7

Please sign in to comment.