mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +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