From 0923081aa89349576665e56a0895ede48da9813e Mon Sep 17 00:00:00 2001 From: "Sindhuri.A" Date: Sat, 20 Apr 2019 16:39:50 +0530 Subject: Move String literal to left-hand side of equals Move String literal to left-hand side of equals SniroValidator class Issue-ID: SO-1490 Change-Id: Ib9d1ba94908f92cc46cf5a8177e3808327398600 Signed-off-by: Sindhuri.A --- .../src/main/java/org/onap/so/client/sniro/SniroValidator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bpmn/so-bpmn-tasks/src/main/java/org') diff --git a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/sniro/SniroValidator.java b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/sniro/SniroValidator.java index a448082cfe..eb73001f42 100644 --- a/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/sniro/SniroValidator.java +++ b/bpmn/so-bpmn-tasks/src/main/java/org/onap/so/client/sniro/SniroValidator.java @@ -49,7 +49,7 @@ public class SniroValidator { JSONObject jsonResponse = new JSONObject(response); if (jsonResponse.has("requestStatus")) { String status = jsonResponse.getString("requestStatus"); - if (status.equals("accepted")) { + if ("accepted".equals(status)) { logger.debug("Sniro Managers synchronous response indicates accepted"); } else { String message = jsonResponse.getString("statusMessage"); @@ -111,7 +111,7 @@ public class SniroValidator { if (!response.isEmpty()) { String status = (String) response.get("status"); if (isNotBlank(status)) { - if (status.equals("success")) { + if ("success".equals(status)) { logger.debug("Sniro Conductors synchronous response indicates success"); } else { String message = (String) response.get("message"); -- cgit 1.2.3-korg