diff --git a/src/main/java/com/github/pagehelper/PageInfo.java b/src/main/java/com/github/pagehelper/PageInfo.java index 3fe9e741..c898b556 100644 --- a/src/main/java/com/github/pagehelper/PageInfo.java +++ b/src/main/java/com/github/pagehelper/PageInfo.java @@ -42,7 +42,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); /** * 当前页 */ @@ -177,7 +177,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) {