From 7826fc3a4695c85518baa034ec4283ff2ebb759d Mon Sep 17 00:00:00 2001 From: mpriyank Date: Wed, 12 Feb 2025 13:04:17 +0000 Subject: [PATCH] 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 --- .../java/org/onap/cps/ncmp/dmi/service/client/NcmpRestClient.java | 4 ++-- pom.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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' -- 2.16.6