diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2019-01-02 16:49:38 +0530 |
---|---|---|
committer | IBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com> | 2019-01-02 16:49:58 +0530 |
commit | 0799be7db42fd7de638b4888e27e1e517691cec5 (patch) | |
tree | 4961027d24285d1b44a97d26e26fec70ec578f2e /resource-assignment/provider/src/main | |
parent | e6eb5bfb02077473d20061bd16faf6c1a6fa4af4 (diff) |
Sonar fix: AllocationItemJdbcDaoImpl.java
Fixed sonar issues/code-smells across this file
Issue-ID: CCSDK-891
Change-Id: Iaea16ae96c919ad09eb7de31119a9bd14e2ef539
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'resource-assignment/provider/src/main')
-rw-r--r-- | resource-assignment/provider/src/main/java/org/onap/ccsdk/sli/adaptors/rm/dao/jdbc/AllocationItemJdbcDaoImpl.java | 3 |
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 + "'"; |