From bea6126c3d932ec7fb82e6a0bc4e1d5bef94e85c Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Mon, 18 Jan 2021 08:48:54 -0500 Subject: Fix bug - cast as long Sonar wants to promote one value to a long, to avoid risk of overflow before assignment. Issue-ID: POLICY-2908 Change-Id: I2a92cfd8e437dac3f77ee0366993ae28b2c4c05e Signed-off-by: Pamela Dragosh --- .../reception/decoding/policy/file/PolicyDecoderFileInCsarToPolicy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/policy/file/PolicyDecoderFileInCsarToPolicy.java b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/policy/file/PolicyDecoderFileInCsarToPolicy.java index 1e04b932..4703725d 100644 --- a/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/policy/file/PolicyDecoderFileInCsarToPolicy.java +++ b/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/policy/file/PolicyDecoderFileInCsarToPolicy.java @@ -48,7 +48,7 @@ public class PolicyDecoderFileInCsarToPolicy implements PolicyDecoder