Fixed the sonar issues in ONAP-REST.
[policy/engine.git] / ONAP-REST / src / main / java / org / onap / policy / rest / util / PolicyValidation.java
index 77dcbdc..446073d 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * ONAP Policy Engine
  * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -306,7 +306,7 @@ public class PolicyValidation {
                                                                        valid = false;
                                                                }
                                                        } else if ("PROPERTIES".equals(configType)) {
-                                                               if (!PolicyUtils.isPropValid(configBodyData)||configBodyData.equals("")) {
+                                                               if (!PolicyUtils.isPropValid(configBodyData) || "".equals(configBodyData)) {
                                                                        responseString.append("Config Body: Property data is not valid" + HTML_ITALICS_LNBREAK);
                                                                        valid = false;
                                                                }