summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordinesha <dineshgs@in.ibm.com>2019-08-09 12:32:05 +0530
committerDinesha GS <dineshgs@in.ibm.com>2019-08-12 09:02:47 +0000
commitc939ac9eba0dba965fd0e61839676d8906ffeeeb (patch)
treec3b614a6ef49a49486d3f5b0234358eb80f5bde5
parent2cdc93337249b83615858c18191731e4d1f5f0e2 (diff)
Sonar Fix - ResourceType.java- Added field 'final' to the static variable
Fixed Sonar issues across the file Issue-ID: VID-547 Change-Id: I1daa62cf2e30f5b0dbe142c7ea183f93fd7fb48f Signed-off-by: dinesha <dineshgs@in.ibm.com>
-rw-r--r--vid-app-common/src/main/java/org/onap/vid/aai/model/ResourceType.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/model/ResourceType.java b/vid-app-common/src/main/java/org/onap/vid/aai/model/ResourceType.java
index 83a3cae1d..4d49b5806 100644
--- a/vid-app-common/src/main/java/org/onap/vid/aai/model/ResourceType.java
+++ b/vid-app-common/src/main/java/org/onap/vid/aai/model/ResourceType.java
@@ -37,7 +37,7 @@ public enum ResourceType {
INSTANCE_GROUP("instance-groups", "instance-group-name"),
VOLUME_GROUP("volume-groups", "volume-group-name");
- private static Map<String, ResourceType> AAI_FORMAT_MAP = Stream
+ private static final Map<String, ResourceType> AAI_FORMAT_MAP = Stream
.of(ResourceType.values())
.collect(Collectors.toMap(s -> s.aaiFormat, Function.identity()));