diff options
author | sourabh_sourabh <sourabh.sourabh@est.tech> | 2024-12-10 11:32:35 +0000 |
---|---|---|
committer | sourabh_sourabh <sourabh.sourabh@est.tech> | 2024-12-10 12:18:14 +0000 |
commit | bca7fe8c8f66f0d66c8d47238871e10bb3c8aa96 (patch) | |
tree | 413416cf8ebed447e7bdbfda4bb8501e845703eb /dmi-service/src/main/java/org | |
parent | c364b3a247d81c2a3d29d433e751dfdd427ce00c (diff) |
- Added sonar plugin for dmi service.
Issue-ID: CPS-2545
Change-Id: Ic779c81dc5db3071010f5b47cd3f4a75a107c494
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Diffstat (limited to 'dmi-service/src/main/java/org')
-rw-r--r-- | dmi-service/src/main/java/org/onap/cps/ncmp/dmi/service/client/NcmpRestClient.java | 2 |
1 files changed, 1 insertions, 1 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 a2a01ebd..92165ffb 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 @@ -51,7 +51,7 @@ public class NcmpRestClient { final HttpHeaders httpHeaders = new HttpHeaders(); httpHeaders.setBasicAuth(cpsProperties.getAuthUsername(), cpsProperties.getAuthPassword()); httpHeaders.set(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE); - final HttpEntity httpEntity = new HttpEntity<>(jsonData, httpHeaders); + final HttpEntity<String> httpEntity = new HttpEntity<>(jsonData, httpHeaders); return restTemplate.exchange(ncmpRegistrationUrl, HttpMethod.POST, httpEntity, String.class); } |