mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Refine null-safety in the spring-test module
Closes gh-34161
This commit is contained in:
@@ -51,6 +51,14 @@ public class InvalidMediaTypeException extends IllegalArgumentException {
|
||||
this.mediaType = ex.getMimeType();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the detail message string of this exception instance (never {@code null}).
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("NullAway") // InvalidMediaTypeException message is never null
|
||||
public String getMessage() {
|
||||
return super.getMessage();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the offending media type.
|
||||
|
||||
Reference in New Issue
Block a user