Modifying bugs in code 64/102464/1
authorhekeguang <hekeguang@chinamobile.com>
Thu, 27 Feb 2020 07:49:13 +0000 (15:49 +0800)
committerhekeguang <hekeguang@chinamobile.com>
Thu, 27 Feb 2020 07:49:23 +0000 (15:49 +0800)
Issue-ID: USECASEUI-368
Change-Id: Icdd6101748ed99fd3d33f1a566ff49d58e1b9c5a
Signed-off-by: hekeguang <hekeguang@chinamobile.com>
server/src/main/java/org/onap/usecaseui/server/util/nsmf/NsmfCommonUtil.java

index 3012a72..4a7c5b2 100644 (file)
@@ -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 );
     }
 }