Skip to content

Commit

Permalink
Merge pull request #780 from xiao8Git/5.3.3
Browse files Browse the repository at this point in the history
修改bug #779
  • Loading branch information
abel533 committed Nov 9, 2023
2 parents 8961063 + be523bc commit 8182846
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/github/pagehelper/PageInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
@SuppressWarnings({"rawtypes", "unchecked"})
public class PageInfo<T> extends PageSerializable<T> {
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);
/**
* 当前页
*/
Expand Down Expand Up @@ -177,7 +177,7 @@ public static <T> PageInfo<T> of(List<? extends T> list, int navigatePages) {
* @return
*/
public static <T> PageInfo<T> emptyPageInfo() {
return EMPTY;
return new PageInfo(Collections.emptyList(), 0);
}

public void calcByNavigatePages(int navigatePages) {
Expand Down

0 comments on commit 8182846

Please sign in to comment.