mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 05:49:04 +00:00
Resolve remaining nullability warnings
Issue: SPR-15869
This commit is contained in:
@@ -525,7 +525,7 @@ public class MediaType extends MimeType implements Serializable {
|
||||
* @return the list of media types
|
||||
* @throws InvalidMediaTypeException if the media type value cannot be parsed
|
||||
*/
|
||||
public static List<MediaType> parseMediaTypes(String mediaTypes) {
|
||||
public static List<MediaType> parseMediaTypes(@Nullable String mediaTypes) {
|
||||
if (!StringUtils.hasLength(mediaTypes)) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user