diff options
author | Dan Timoney <dtimoney@att.com> | 2018-11-15 20:49:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-11-15 20:49:44 +0000 |
commit | 52397416e7d235dcdc5ae15d22798d00789f72f7 (patch) | |
tree | f7e7efcdb7f235b811c5d7ca6dc3701ce15fa4cd /ms/neng/src | |
parent | 02bba1f1b167c26a89be981fb2a47d5d448ae2b4 (diff) | |
parent | cca6a466c69d6ecf8bbe2d76fad09faf87c8dafc (diff) |
Merge "Fixed major sonar issue in PolicySequence"
Diffstat (limited to 'ms/neng/src')
-rw-r--r-- | ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/policy/PolicySequence.java | 8 |
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; |