From cca6a466c69d6ecf8bbe2d76fad09faf87c8dafc Mon Sep 17 00:00:00 2001 From: ezhil <ezhrajam@in.ibm.com> Date: Thu, 15 Nov 2018 19:08:43 +0530 Subject: Fixed major sonar issue in PolicySequence Fixed variable hide issue Issue-ID: CCSDK-687 Change-Id: I20fbfdd30f76bc55463c9b49fe3ac05dfe8c9f50 Signed-off-by: ezhil <ezhrajam@in.ibm.com> --- .../org/onap/ccsdk/apps/ms/neng/core/policy/PolicySequence.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ms/neng/src/main/java') diff --git a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/policy/PolicySequence.java b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/policy/PolicySequence.java index dc0b6fdc..526f67c1 100644 --- a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/policy/PolicySequence.java +++ b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/policy/PolicySequence.java @@ -83,11 +83,11 @@ public class PolicySequence { } } if (this.maxValue == null) { - long length = this.length; - if (length <= 0) { - length = 3; + long mlength = this.length; + if (mlength <= 0) { + mlength = 3; } - this.maxValue = (long) Math.pow(base, length) - 1; + this.maxValue = (long) Math.pow(base, mlength) - 1; } } return maxValue; -- cgit 1.2.3-korg