Skip to content

Commit ca14202

Browse files
committed
Merge pull request #27115 from gnagy
* pr/27115: Update copyright of changed file Allow null attribute value in Model.set() Closes gh-27115
2 parents 7598bca + 7231f22 commit ca14202

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-context/src/main/kotlin/org/springframework/ui/ModelExtensions.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors
2+
* Copyright 2002-2023 the original author or authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,6 +26,6 @@ package org.springframework.ui
2626
* @author Mario Arias
2727
* @since 5.0
2828
*/
29-
operator fun Model.set(attributeName: String, attributeValue: Any) {
29+
operator fun Model.set(attributeName: String, attributeValue: Any?) {
3030
this.addAttribute(attributeName, attributeValue)
3131
}

0 commit comments

Comments
 (0)