jdaugherty commented on code in PR #16323:
URL: https://github.com/apache/grails-core/pull/16323#discussion_r3974115796
##########
grails-views-gson/src/main/groovy/grails/plugin/json/view/api/internal/DefaultJsonViewHelper.groovy:
##########
@@ -160,33 +160,33 @@ class DefaultJsonViewHelper extends
DefaultGrailsViewHelper {
ViewUtils.getBooleanFromMap(ASSOCIATIONS, arguments, true)
}
- protected List<Link> getPaginationLinks(Object object, Integer total,
Parameters params) {
- int offset = params.int(PAGINATION_OFFSET, 0)
+ protected List<Link> getPaginationLinks(Object object, Long total,
Parameters params) {
+ long offset = params.long(PAGINATION_OFFSET, 0L)
int max = params.int(PAGINATION_MAX, 10)
Review Comment:
Shouldn't max be a long too?
--
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]