From c939ac9eba0dba965fd0e61839676d8906ffeeeb Mon Sep 17 00:00:00 2001 From: dinesha Date: Fri, 9 Aug 2019 12:32:05 +0530 Subject: 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 --- vid-app-common/src/main/java/org/onap/vid/aai/model/ResourceType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vid-app-common/src/main') 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 AAI_FORMAT_MAP = Stream + private static final Map AAI_FORMAT_MAP = Stream .of(ResourceType.values()) .collect(Collectors.toMap(s -> s.aaiFormat, Function.identity())); -- cgit 1.2.3-korg