fixed sonar issue in MapRequestTunables.java 63/64363/1
authorSandeep J <sandeejh@in.ibm.com>
Tue, 4 Sep 2018 08:50:14 +0000 (14:20 +0530)
committerSandeep J <sandeejh@in.ibm.com>
Tue, 4 Sep 2018 08:50:20 +0000 (14:20 +0530)
fixed sonar issue as detailed in SO-964

Issue-ID: SO-964
Change-Id: I7f51faba54571186242021048c0b3e755bdde731
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
adapters/mso-sdnc-adapter/src/main/java/org/onap/so/adapters/sdnc/impl/MapRequestTunables.java

index b456fb2..a5800fc 100644 (file)
@@ -4,6 +4,8 @@
  * ================================================================================
  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
+ * Modifications Copyright (C) 2018 IBM.
+ * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -87,7 +89,7 @@ public class MapRequestTunables {
                                }
                        }
 
-                       if (reqTunable.getSdncUrl() == null || reqTunable.getSdncUrl().equals("")) {
+                       if (reqTunable.getSdncUrl() == null || ("").equals(reqTunable.getSdncUrl())) {
                                error = "Invalid configuration, sdncUrl required for:" + key + " value:" + value;
                        }
                } else {