We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdcea58 commit 5ef4b00Copy full SHA for 5ef4b00
spring-core/src/main/java/org/springframework/util/MimeTypeUtils.java
@@ -362,7 +362,7 @@ public static String toString(Collection<? extends MimeType> mimeTypes) {
362
*/
363
public static <T extends MimeType> void sortBySpecificity(List<T> mimeTypes) {
364
Assert.notNull(mimeTypes, "'mimeTypes' must not be null");
365
- if (mimeTypes.size() >= 50) {
+ if (mimeTypes.size() > 50) {
366
throw new InvalidMimeTypeException(mimeTypes.toString(), "Too many elements");
367
}
368
0 commit comments