diff options
author | hekeguang <hekeguang@chinamobile.com> | 2020-02-27 15:49:13 +0800 |
---|---|---|
committer | hekeguang <hekeguang@chinamobile.com> | 2020-02-27 15:49:23 +0800 |
commit | d618a8627c720f9f88a40d702c6d10354212b87b (patch) | |
tree | 7ad1f23f074aea6868542daf3f6d8d0950338d83 | |
parent | bd93a470b669b2876f69fa569455a315151107f0 (diff) |
Modifying bugs in code
Issue-ID: USECASEUI-368
Change-Id: Icdd6101748ed99fd3d33f1a566ff49d58e1b9c5a
Signed-off-by: hekeguang <hekeguang@chinamobile.com>
-rw-r--r-- | server/src/main/java/org/onap/usecaseui/server/util/nsmf/NsmfCommonUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/main/java/org/onap/usecaseui/server/util/nsmf/NsmfCommonUtil.java b/server/src/main/java/org/onap/usecaseui/server/util/nsmf/NsmfCommonUtil.java index 3012a723..4a7c5b2b 100644 --- a/server/src/main/java/org/onap/usecaseui/server/util/nsmf/NsmfCommonUtil.java +++ b/server/src/main/java/org/onap/usecaseui/server/util/nsmf/NsmfCommonUtil.java @@ -46,7 +46,7 @@ public class NsmfCommonUtil { if (list == null || pageNo < 1 || (pageNo - 1) * pageSize > list.size()) { return new PagedResult(0, Collections.EMPTY_LIST); } - list = list.stream().skip((pageNo - 1) * pageSize).limit(pageSize).collect(Collectors.toList()); + list = list.stream().skip((pageNo - 1) * (long)pageSize).limit(pageSize).collect(Collectors.toList()); return new PagedResult(list.size(), list ); } } |