Refine null-safety in the spring-test module

Closes gh-34161
This commit is contained in:
Sébastien Deleuze
2024-12-26 17:45:17 +01:00
parent 7417bd0ac1
commit a442c180f1
19 changed files with 47 additions and 29 deletions
@@ -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.