Skip to content

Commit

Permalink
Merge pull request #27115 from gnagy
Browse files Browse the repository at this point in the history
* pr/27115:
  Update copyright of changed file
  Allow null attribute value in Model.set()

Closes gh-27115
  • Loading branch information
snicoll committed Aug 26, 2023
2 parents 7598bca + 7231f22 commit ca14202
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors
* Copyright 2002-2023 the original author or authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -26,6 +26,6 @@ package org.springframework.ui
* @author Mario Arias
* @since 5.0
*/
operator fun Model.set(attributeName: String, attributeValue: Any) {
operator fun Model.set(attributeName: String, attributeValue: Any?) {
this.addAttribute(attributeName, attributeValue)
}

0 comments on commit ca14202

Please sign in to comment.