jdaugherty commented on code in PR #15335:
URL: https://github.com/apache/grails-core/pull/15335#discussion_r2725770979
##########
grails-validation/src/main/groovy/grails/validation/Validateable.groovy:
##########
@@ -103,6 +103,18 @@ trait Validateable {
return constraintsMapInternal
}
+ /**
+ * Clears the cached constraints map, forcing re-evaluation on next access.
+ * This is primarily useful in testing scenarios where shared constraints
+ * may need to be re-evaluated after configuration changes.
+ *
+ * @since 7.0
+ */
+ @Generated
+ static void clearConstraintsMap() {
Review Comment:
We should probably be more explicit about this name - it's only clearing a
cache. I'd suggest the name `clearConstraintsMapCache()`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]