summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-01-07 15:49:08 +0000
committerGerrit Code Review <gerrit@onap.org>2019-01-07 15:49:08 +0000
commit5271078792e1bfdafb113959368657c53e8af668 (patch)
tree7470cd4d13b57f3d60d39aaa52a93fc27d2f850f
parent1c79cb2e8fe101e33372756417b186e314069305 (diff)
parent0799be7db42fd7de638b4888e27e1e517691cec5 (diff)
Merge "Sonar fix: AllocationItemJdbcDaoImpl.java"
-rw-r--r--resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/rm/dao/jdbc/AllocationItemJdbcDaoImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/rm/dao/jdbc/AllocationItemJdbcDaoImpl.java b/resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/rm/dao/jdbc/AllocationItemJdbcDaoImpl.java
index fcde0f8f1..2a62c63a3 100644
--- a/resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/rm/dao/jdbc/AllocationItemJdbcDaoImpl.java
+++ b/resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/rm/dao/jdbc/AllocationItemJdbcDaoImpl.java
@@ -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 + "'";