aboutsummaryrefslogtreecommitdiffstats
path: root/cps-ncmp-service/src/main
diff options
context:
space:
mode:
authormpriyank <priyank.maheshwari@est.tech>2025-01-29 09:12:40 +0000
committermpriyank <priyank.maheshwari@est.tech>2025-01-29 10:19:44 +0000
commita6a90c010bbfd80304b6d443912affa5fe850bf4 (patch)
tree5987b773b7e5ea166fbcef1d04dcff2ed1f65a23 /cps-ncmp-service/src/main
parent03b3791be8885daa658bbe6a98380e3cf866348b (diff)
Address sonar violations related to hazelcast
- Supressing warning caused by deprecation of RestApiConfig in hazelcast 5.5 community version , which will be removed in 6.0 so created https://lf-onap.atlassian.net/browse/CPS-2599 to address the issues - Other sonar fixes Issue-ID: CPS-2594 Change-Id: I2e95cd851eae74d8bbb4535cfbaed1dc1ef89543 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
Diffstat (limited to 'cps-ncmp-service/src/main')
-rw-r--r--cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/cache/HazelcastCacheConfig.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/cache/HazelcastCacheConfig.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/cache/HazelcastCacheConfig.java
index 75007e2e35..5a6e1ce269 100644
--- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/cache/HazelcastCacheConfig.java
+++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/cache/HazelcastCacheConfig.java
@@ -1,6 +1,6 @@
/*
* ============LICENSE_START========================================================
- * Copyright (C) 2023-2024 Nordix Foundation
+ * Copyright (C) 2023-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.
@@ -130,6 +130,10 @@ public class HazelcastCacheConfig {
}
}
+ /*Note: Need to keep this for the meantime as Hazelcast community version 5.5 has marked RestApiConfig
+ for removal in future version and we have clients relying on these endpoints.
+ https://lf-onap.atlassian.net/browse/CPS-2599 created to address the issue. */
+ @SuppressWarnings("squid:S5738")
protected void exposeClusterInformation(final Config config) {
config.getNetworkConfig().getRestApiConfig().setEnabled(true)
.enableGroups(RestEndpointGroup.HEALTH_CHECK, RestEndpointGroup.CLUSTER_READ);