Skip to content

Commit 645a605

Browse files
committed
DATACMNS-304 - Fixed compile error on JDK6.
Changed variable declaration in PageableHandlerMethodArgumentResolver from int to Integer to satisfy JDK6 generics resolution.
1 parent a588f43 commit 645a605

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/springframework/data/web/PageableHandlerMethodArgumentResolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ private Pageable getDefaultFromAnnotationOrFallback(MethodParameter methodParame
243243

244244
private static Pageable getDefaultPageRequestFrom(PageableDefault defaults) {
245245

246-
int defaultPageNumber = defaults.page();
247-
int defaultPageSize = getSpecificPropertyOrDefaultFromValue(defaults, "size");
246+
Integer defaultPageNumber = defaults.page();
247+
Integer defaultPageSize = getSpecificPropertyOrDefaultFromValue(defaults, "size");
248248

249249
if (defaults.sort().length == 0) {
250250
return new PageRequest(defaultPageNumber, defaultPageSize);

0 commit comments

Comments
 (0)