From 75c5ab961f48b17daadb54c40bf4eebe088e5432 Mon Sep 17 00:00:00 2001 From: xit Date: Wed, 3 May 2023 06:36:38 +0900 Subject: [PATCH] =?UTF-8?q?getTotalSize()=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cokr/xit/foundation/data/paging/BoundedList.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/cokr/xit/foundation/data/paging/BoundedList.java b/src/main/java/cokr/xit/foundation/data/paging/BoundedList.java index a55fe35..36736f8 100644 --- a/src/main/java/cokr/xit/foundation/data/paging/BoundedList.java +++ b/src/main/java/cokr/xit/foundation/data/paging/BoundedList.java @@ -59,10 +59,8 @@ public class BoundedList extends ArrayList { Pageable row = (Pageable)first; totalSize = row.getTotalSize(); } - return totalSize; } - - return totalSize = size(); + return totalSize < 1 ? totalSize = size() : totalSize; } /**원래 요소의 전체 갯수를 설정한다. * @param totalSize 원래 요소의 전체 갯수