Fix condition for "Too many elements" in MimeTypeUtils.sortBySpecificity()
See gh-31254 Closes gh-31769
This commit is contained in:
parent
fdcea58a53
commit
7b95bd72f7
|
@ -362,7 +362,7 @@ public abstract class MimeTypeUtils {
|
|||
*/
|
||||
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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue