diff options
author | m.miernik <m.miernik@samsung.com> | 2021-06-22 11:37:46 +0200 |
---|---|---|
committer | KAPIL SINGAL <ks220y@att.com> | 2021-06-23 15:48:40 +0000 |
commit | cb7e5aa3c0445882a2bc04222573c1563b98117b (patch) | |
tree | 54a754eb9a85890bddf3d05ae6787a6a6bd8e885 /sdnr/wt/devicemanager-core | |
parent | a285920200ba5cdff0d2df4f794518a0db395922 (diff) |
Fix sonar issues
Replaced methods size() to isEmpty() based on Sonar recommendations
Issue-ID: SDNC-1568
Change-Id: I9b2548ba1d42e009a62ddd34f4f43452622c6ff0
Signed-off-by: m.miernik <m.miernik@samsung.com>
Diffstat (limited to 'sdnr/wt/devicemanager-core')
-rw-r--r-- | sdnr/wt/devicemanager-core/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/devicemanager/housekeeping/ResyncNetworkElementHouskeepingService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdnr/wt/devicemanager-core/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/devicemanager/housekeeping/ResyncNetworkElementHouskeepingService.java b/sdnr/wt/devicemanager-core/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/devicemanager/housekeeping/ResyncNetworkElementHouskeepingService.java index 50b0215d6..fe166c92d 100644 --- a/sdnr/wt/devicemanager-core/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/devicemanager/housekeeping/ResyncNetworkElementHouskeepingService.java +++ b/sdnr/wt/devicemanager-core/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/devicemanager/housekeeping/ResyncNetworkElementHouskeepingService.java @@ -99,7 +99,7 @@ public class ResyncNetworkElementHouskeepingService implements ResyncNetworkElem List<String> nodeNamesInput; // Create list of mountpoints if input is empty, using the content in ES - if (nodeNames == null || nodeNames.size() <= 0) { + if (nodeNames == null || nodeNames.isEmpty()) { nodeNamesInput = this.databaseClientEvents.getAllNodesWithCurrentAlarms(); } else { nodeNamesInput = nodeNames; |