jdaugherty commented on code in PR #16139:
URL: https://github.com/apache/grails-core/pull/16139#discussion_r3776136820
##########
grails-forge/grails-forge-core/src/main/resources/gsp/index.gsp:
##########
@@ -568,30 +568,30 @@
[code: 'welcome.binding.formatted', beans:
applicationContext.getBeansOfType(grails.databinding.converters.FormattedValueConverter)],
[code: 'welcome.binding.structured', beans:
applicationContext.getBeansOfType(grails.databinding.TypedStructuredBindingEditor)],
[code: 'welcome.binding.listeners', beans:
applicationContext.getBeansOfType(grails.databinding.events.DataBindingListener)]]}"/>
- <g:set var="numBindingBeans" value="${bindingGroups.sum { g ->
g.beans.size() } ?: 0}"/>
- <g:set var="mimeTypeProviders"
+ <g:def type="int" var="numBindingBeans" value="${(int)
(bindingGroups.sum { g -> g.beans.size() } ?: 0)}"/>
Review Comment:
Can't we fix the set tag to handle types? We can always set it to Object
and it should still work, no? Why the def?
--
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]