summaryrefslogtreecommitdiffstats
path: root/ms/neng/src/main/java/org
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2018-11-15 20:49:44 +0000
committerGerrit Code Review <gerrit@onap.org>2018-11-15 20:49:44 +0000
commit52397416e7d235dcdc5ae15d22798d00789f72f7 (patch)
treef7e7efcdb7f235b811c5d7ca6dc3701ce15fa4cd /ms/neng/src/main/java/org
parent02bba1f1b167c26a89be981fb2a47d5d448ae2b4 (diff)
parentcca6a466c69d6ecf8bbe2d76fad09faf87c8dafc (diff)
Merge "Fixed major sonar issue in PolicySequence"
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;