replace null return value

This commit is contained in:
langghaha 2020-01-08 19:07:50 +08:00
parent 0ed8e6f812
commit 6f777607d8

View File

@ -76,7 +76,7 @@ public class PaginationHelper<E> {
page.setTotalCount(rowCountInt); page.setTotalCount(rowCountInt);
if (pageNo > pageCount) { if (pageNo > pageCount) {
return null; return page;
} }
final int startRow = (pageNo - 1) * pageSize; final int startRow = (pageNo - 1) * pageSize;
@ -121,7 +121,7 @@ public class PaginationHelper<E> {
page.setTotalCount(rowCountInt); page.setTotalCount(rowCountInt);
if (pageNo > pageCount) { if (pageNo > pageCount) {
return null; return page;
} }
String selectSQL = sqlFetchRows; String selectSQL = sqlFetchRows;
@ -162,7 +162,7 @@ public class PaginationHelper<E> {
page.setTotalCount(rowCountInt); page.setTotalCount(rowCountInt);
if (pageNo > pageCount) { if (pageNo > pageCount) {
return null; return page;
} }
String selectSQL = sqlFetchRows; String selectSQL = sqlFetchRows;