Sonar fix: AllocationItemJdbcDaoImpl.java 80/75180/1
authorArundathi Patil <arundpil@in.ibm.com>
Wed, 2 Jan 2019 11:19:38 +0000 (16:49 +0530)
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>
Wed, 2 Jan 2019 11:19:58 +0000 (16:49 +0530)
Fixed sonar issues/code-smells across this file

Issue-ID: CCSDK-891
Change-Id: Iaea16ae96c919ad09eb7de31119a9bd14e2ef539
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/rm/dao/jdbc/AllocationItemJdbcDaoImpl.java

index fcde0f8..2a62c63 100644 (file)
@@ -4,6 +4,7 @@
  * ================================================================================
  * Copyright (C) 2017 AT&T Intellectual Property. All rights
  *                         reserved.
+ * Modifications Copyright © 2018 IBM.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -110,7 +111,7 @@ public class AllocationItemJdbcDaoImpl implements AllocationItemJdbcDao {
         }
 
         if (resourceShareGroupFilter != null) {
-            if (resourceShareGroupFilter.equalsIgnoreCase("null")) {
+            if (("null").equalsIgnoreCase(resourceShareGroupFilter)) {
                 sql += " AND resource_share_group_list IS NULL";
             } else {
                 sql += " AND resource_share_group_list LIKE '" + resourceShareGroupFilter + "'";