From: mpriyank Date: Wed, 12 Feb 2025 13:04:17 +0000 (+0000) Subject: Fix sonar issue and upgrade cps.version X-Git-Tag: 1.7.0~10 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=7826fc3a4695c85518baa034ec4283ff2ebb759d;p=cps%2Fncmp-dmi-plugin.git Fix sonar issue and upgrade cps.version - removed using the deprecated fromHttpUrl method and instead using the chained method fromUriString which was anyways called from the fromHttpUrl method - also updated the latest cps version i.e 3.6.0 Issue-ID: CPS-245 Change-Id: I4892f27ceba934db526aab509b9edd0d2367ab6d Signed-off-by: mpriyank --- diff --git a/dmi-service/src/main/java/org/onap/cps/ncmp/dmi/service/client/NcmpRestClient.java b/dmi-service/src/main/java/org/onap/cps/ncmp/dmi/service/client/NcmpRestClient.java index 92165ffb..18445e5c 100644 --- a/dmi-service/src/main/java/org/onap/cps/ncmp/dmi/service/client/NcmpRestClient.java +++ b/dmi-service/src/main/java/org/onap/cps/ncmp/dmi/service/client/NcmpRestClient.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * Copyright (C) 2021 Nordix Foundation + * Copyright (C) 2021-2025 Nordix Foundation * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -57,7 +57,7 @@ public class NcmpRestClient { private String buildNcmpRegistrationUrl() { return UriComponentsBuilder - .fromHttpUrl(cpsProperties.getBaseUrl()) + .fromUriString(cpsProperties.getBaseUrl()) .path(cpsProperties.getDmiRegistrationUrl()) .toUriString(); } diff --git a/pom.xml b/pom.xml index b2fc97db..16dc0bf2 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ org.onap.cps - 3.5.5 + 3.6.0 yyyyMMdd'T'HHmmss'Z'