From 6d9fc5078948e3dc260d318e6b57a2f68f1d2478 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Tue, 4 Sep 2018 14:20:14 +0530 Subject: fixed sonar issue in MapRequestTunables.java fixed sonar issue as detailed in SO-964 Issue-ID: SO-964 Change-Id: I7f51faba54571186242021048c0b3e755bdde731 Signed-off-by: Sandeep J --- .../main/java/org/onap/so/adapters/sdnc/impl/MapRequestTunables.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'adapters/mso-sdnc-adapter/src/main/java/org/onap') diff --git a/adapters/mso-sdnc-adapter/src/main/java/org/onap/so/adapters/sdnc/impl/MapRequestTunables.java b/adapters/mso-sdnc-adapter/src/main/java/org/onap/so/adapters/sdnc/impl/MapRequestTunables.java index b456fb2336..a5800fc73d 100644 --- a/adapters/mso-sdnc-adapter/src/main/java/org/onap/so/adapters/sdnc/impl/MapRequestTunables.java +++ b/adapters/mso-sdnc-adapter/src/main/java/org/onap/so/adapters/sdnc/impl/MapRequestTunables.java @@ -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 { -- cgit 1.2.3-korg