aboutsummaryrefslogtreecommitdiffstats
path: root/adapters/mso-vnf-adapter
diff options
context:
space:
mode:
authorrama-huawei <rama.subba.reddy.s@huawei.com>2017-09-25 16:03:46 +0530
committerrama-huawei <rama.subba.reddy.s@huawei.com>2017-09-25 16:04:37 +0530
commitbad9cbaa553f9029360f34a5617e8cbd940a60a6 (patch)
tree7631e4f1d8cc6af9b4428583e1cf5a180ec0da9f /adapters/mso-vnf-adapter
parent6ae289e48a8d286e357544d4a8dd4b377a8e6993 (diff)
Replaced with Diamond symbol
Change-Id: I439daab53236cd35e43e3a503ddc4b3218f7d992 Issue-Id:SO-118 Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
Diffstat (limited to 'adapters/mso-vnf-adapter')
-rw-r--r--adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/BpelRestClient.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/BpelRestClient.java b/adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/BpelRestClient.java
index 67e263c3a7..a4f1046df9 100644
--- a/adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/BpelRestClient.java
+++ b/adapters/mso-vnf-adapter/src/main/java/org/openecomp/mso/adapters/vnf/BpelRestClient.java
@@ -142,9 +142,10 @@ public class BpelRestClient {
}
public void setRetryCount(int retryCount) {
- if (retryCount < 0)
- retryCount = DEFAULT_RETRY_COUNT;
- this.retryCount = retryCount;
+ int newRetryCount = retryCount;
+ if (newRetryCount < 0)
+ newRetryCount = DEFAULT_RETRY_COUNT;
+ this.retryCount = newRetryCount;
}
public int getRetryInterval() {
@@ -164,14 +165,14 @@ public class BpelRestClient {
}
public String getRetryList() {
- if (retryList.size() == 0)
+ if (retryList.isEmpty())
return "";
String t = retryList.toString();
return t.substring(1, t.length()-1);
}
public void setRetryList(String retryList) {
- Set<Integer> s = new TreeSet<Integer>();
+ Set<Integer> s = new TreeSet<>();
for (String t : retryList.split("[, ]")) {
try {
s.add(Integer.parseInt(t));