summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2017-09-30 08:04:54 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-30 08:04:54 +0000
commitb727f01576c13cdab5d3333acb09f1fcd305a673 (patch)
tree20fca419d8b30e3ac3ef000b7199d5abfff0ed2c
parent899ed6f5714968bd0412277df25f9302dc780f08 (diff)
parent3080556a6bdaa164ce0e9b41a72c35c5da1dd3f1 (diff)
Merge "Fixed string literal comparision issue"
-rw-r--r--mso-api-handlers/mso-requests-db/src/main/java/org/openecomp/mso/requestsdb/MockRequestsDatabase.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/mso-api-handlers/mso-requests-db/src/main/java/org/openecomp/mso/requestsdb/MockRequestsDatabase.java b/mso-api-handlers/mso-requests-db/src/main/java/org/openecomp/mso/requestsdb/MockRequestsDatabase.java
index c4ded174ba..e3c7cda3bd 100644
--- a/mso-api-handlers/mso-requests-db/src/main/java/org/openecomp/mso/requestsdb/MockRequestsDatabase.java
+++ b/mso-api-handlers/mso-requests-db/src/main/java/org/openecomp/mso/requestsdb/MockRequestsDatabase.java
@@ -60,10 +60,10 @@ public class MockRequestsDatabase {
InfraActiveRequests returnRecord = null;
if (record != null) {
String requestAction = record.getRequestAction();
- if (requestAction == null || !requestAction.equals("GetLayer3ServiceDetailsRequest")) {
+ if (!"GetLayer3ServiceDetailsRequest".equals(requestAction)) {
String status = record.getRequestStatus();
- if (status != null && status.equals("COMPLETED")) {
- return returnRecord = record;
+ if ("COMPLETED".equals(status)) {
+ returnRecord = record;
}
}
}