aboutsummaryrefslogtreecommitdiffstats
path: root/ms/neng/src/main/java/org
diff options
context:
space:
mode:
authorezhil <ezhrajam@in.ibm.com>2018-11-15 19:08:43 +0530
committerezhil <ezhrajam@in.ibm.com>2018-11-15 19:08:59 +0530
commitcca6a466c69d6ecf8bbe2d76fad09faf87c8dafc (patch)
tree03dbb1f4d5cd91f9aeecbc72713efa0f51a398ea /ms/neng/src/main/java/org
parent452a3c355a74436457bd526e08c08583e64a7ae0 (diff)
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>
Diffstat (limited to 'ms/neng/src/main/java/org')
-rw-r--r--ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/policy/PolicySequence.java8
1 files changed, 4 insertions, 4 deletions
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;