Use isEmpty() to check collection size 55/14455/1
authorsurya-huawei <a.u.surya@huawei.com>
Fri, 22 Sep 2017 05:00:39 +0000 (10:30 +0530)
committersurya-huawei <a.u.surya@huawei.com>
Fri, 22 Sep 2017 05:03:29 +0000 (10:33 +0530)
commit4b23fde59f0ddb4802d162f7fa97f2e18d43ffe2
treed3bd28abfe4bf9f0ccded845d05c1eba10d5583f
parent97662b28b1cfd66c167e6a13fbac1d1567780e10
Use isEmpty() to check collection size

Major sonar issue in dashboard module
*Using collection.isEmpty() instead of collection.size()
makes code more readable and is more performant

Issue-Id: CCSDK-87
Change-Id: I201d1c7982ce6a1509a462d7d151a41ab2912f91
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
oom-app-common/src/main/java/org/onap/oom/dashboard/controller/HealthCheckController.java