summaryrefslogtreecommitdiffstats
path: root/ms/neng/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'ms/neng/src/main')
-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;