aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2021-01-18 08:48:54 -0500
committerPamela Dragosh <pdragosh@research.att.com>2021-01-18 08:49:02 -0500
commitbea6126c3d932ec7fb82e6a0bc4e1d5bef94e85c (patch)
tree1873ddce48d7e169dfc3ad2c9cdb588c251d56ec /plugins
parentf1f01906979b5baf1b11f1b6849b05e4642aabfc (diff)
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 <pdragosh@research.att.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/decoding/policy/file/PolicyDecoderFileInCsarToPolicy.java2
1 files changed, 1 insertions, 1 deletions
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<Csar, Tosc
private PolicyDecoderFileInCsarToPolicyParameterGroup decoderParameters;
private StandardCoder coder;
- private static final long MAX_FILE_SIZE = 512 * 1024;
+ private static final long MAX_FILE_SIZE = 512L * 1024;
/**
* {@inheritDoc}.