You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by jd...@apache.org on 2025/08/28 15:37:36 UTC

(grails-core) branch responseRenderer created (now db75574d8f)

This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a change to branch responseRenderer
in repository https://gitbox.apache.org/repos/asf/grails-core.git


      at db75574d8f Explicitly type render(object) to help IntelliJ ambiguous method overloading

This branch includes the following new commits:

     new db75574d8f Explicitly type render(object) to help IntelliJ ambiguous method overloading

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(grails-core) 01/01: Explicitly type render(object) to help IntelliJ ambiguous method overloading

Posted by jd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a commit to branch responseRenderer
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit db75574d8f7b649fa132d7037df60ee0aef44e91
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Thu Aug 28 11:37:05 2025 -0400

    Explicitly type render(object) to help IntelliJ ambiguous method overloading
---
 .../groovy/grails/artefact/controller/support/ResponseRenderer.groovy   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grails-controllers/src/main/groovy/grails/artefact/controller/support/ResponseRenderer.groovy b/grails-controllers/src/main/groovy/grails/artefact/controller/support/ResponseRenderer.groovy
index 620413dc52..8ef0a3576e 100644
--- a/grails-controllers/src/main/groovy/grails/artefact/controller/support/ResponseRenderer.groovy
+++ b/grails-controllers/src/main/groovy/grails/artefact/controller/support/ResponseRenderer.groovy
@@ -130,7 +130,7 @@ trait ResponseRenderer extends WebAttributes {
      * @param object The object to render
      */
     @Generated
-    void render(object) {
+    void render(Object object) {
         GrailsWebRequest webRequest = (GrailsWebRequest) RequestContextHolder.currentRequestAttributes()
         HttpServletResponse response = webRequest.currentResponse
         webRequest.renderView = false