summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorMatthieu Geerebaert <matthieu.geerebaert@orange.com>2020-01-13 16:24:23 +0100
committerMatthieu Geerebaert <matthieu.geerebaert@orange.com>2020-01-13 16:24:23 +0100
commit5f2f7b1d3c71fd3c27288b33467a4792131c2cff (patch)
tree7555349eeaccd3cbda1d03b4276ea11725762eea /src/main/java
parent74474544e4e3013c582ca5579a0088c40dacc0e5 (diff)
Security improvement
Update dependencies to reduce security threat ( see jenkins clm ) Change-Id: I09165f017853dfe37caefdbae1f390c224198297 Issue-ID: EXTAPI-377 Signed-off-by: MatthieuGeerebaert <matthieu.geerebaert@orange.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/onap/nbi/commons/MultiCriteriaRequestBuilder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/onap/nbi/commons/MultiCriteriaRequestBuilder.java b/src/main/java/org/onap/nbi/commons/MultiCriteriaRequestBuilder.java
index 3b83bb1..a222438 100644
--- a/src/main/java/org/onap/nbi/commons/MultiCriteriaRequestBuilder.java
+++ b/src/main/java/org/onap/nbi/commons/MultiCriteriaRequestBuilder.java
@@ -110,12 +110,12 @@ public class MultiCriteriaRequestBuilder {
String limitString = limits.get(0);
int offset = Integer.parseInt(offsetString);
int limit = Integer.parseInt(limitString);
- final Pageable pageableRequest = new PageRequest(offset, limit);
+ final Pageable pageableRequest = PageRequest.of(offset, limit);
query.with(pageableRequest);
} else if (!CollectionUtils.isEmpty(limits)) {
String limitString = limits.get(0);
int limit = Integer.parseInt(limitString);
- final Pageable pageableRequest = new PageRequest(0, limit);
+ final Pageable pageableRequest = PageRequest.of(0, limit);
query.with(pageableRequest);
}
}