Nullability refinements in spring-webmvc

Includes revision of web.servlet.tags.form for non-null conventions.

Issue: SPR-15540
This commit is contained in:
Juergen Hoeller
2018-07-30 22:08:11 +02:00
parent 4a147d26fc
commit f74a631ea1
26 changed files with 288 additions and 104 deletions

View File

@@ -51,7 +51,7 @@ public class ModelMap extends LinkedHashMap<String, Object> {
* under the supplied name.
* @see #addAttribute(String, Object)
*/
public ModelMap(String attributeName, Object attributeValue) {
public ModelMap(String attributeName, @Nullable Object attributeValue) {
addAttribute(attributeName, attributeValue);
}