[OOM-CPMv2] Fix sonar issue 88/112788/2
authortkogut <tomasz.kogut@nokia.com>
Thu, 17 Sep 2020 07:13:32 +0000 (09:13 +0200)
committerTomasz Kogut <tomasz.kogut@nokia.com>
Thu, 17 Sep 2020 07:29:06 +0000 (07:29 +0000)
Use isEmpty() to check whether the collection is empty or not

Issue-ID: OOM-2526
Signed-off-by: tkogut <tomasz.kogut@nokia.com>
Change-Id: I3852a287a43f356e74a94dfbcce5fbffb3c6c2d3

trustStoreMerger/src/main/java/org/onap/oom/certservice/postprocessor/copier/KeystoreCopier.java

index eba59fd..f5cea21 100644 (file)
@@ -52,7 +52,7 @@ public class KeystoreCopier {
     }
 
     private void containsPaths(List<String> sources) {
-        if (sources.size() == 0) {
+        if (sources.isEmpty()) {
             LOGGER.info("No Keystore files to copy");
         }
     }