From be523bc4b471c78a89108bffc9c3f7bf88cdf69c Mon Sep 17 00:00:00 2001 From: chenyuehui Date: Tue, 7 Nov 2023 13:24:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug=20https://github.com/page?= =?UTF-8?q?helper/Mybatis-PageHelper/issues/779?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/github/pagehelper/PageInfo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/github/pagehelper/PageInfo.java b/src/main/java/com/github/pagehelper/PageInfo.java index 158a9e21..366d5c5c 100644 --- a/src/main/java/com/github/pagehelper/PageInfo.java +++ b/src/main/java/com/github/pagehelper/PageInfo.java @@ -41,7 +41,7 @@ @SuppressWarnings({"rawtypes", "unchecked"}) public class PageInfo extends PageSerializable { public static final int DEFAULT_NAVIGATE_PAGES = 8; - public static final PageInfo EMPTY = new PageInfo(Collections.emptyList(), 0); + //private PageInfo EMPTY = new PageInfo(Collections.emptyList(), 0); /** * 当前页 */ @@ -176,7 +176,7 @@ public static PageInfo of(List list, int navigatePages) { * @return */ public static PageInfo emptyPageInfo() { - return EMPTY; + return new PageInfo(Collections.emptyList(), 0); } public void calcByNavigatePages(int navigatePages) {