From: rama-huawei Date: Wed, 4 Oct 2017 13:12:26 +0000 (+0530) Subject: Use isEmpty to check collection is empty or not X-Git-Tag: v1.1.0~3 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F19%2F17219%2F2;p=aai%2Fdata-router.git Use isEmpty to check collection is empty or not Issue-id: AAI-415 Change-Id: Ia5765efb2f6f9184bb702de1ee60bfab9ab933e1 Signed-off-by: rama-huawei --- diff --git a/src/main/java/org/onap/aai/datarouter/entity/OxmEntityDescriptor.java b/src/main/java/org/onap/aai/datarouter/entity/OxmEntityDescriptor.java index ed8b9fd..a848bd2 100644 --- a/src/main/java/org/onap/aai/datarouter/entity/OxmEntityDescriptor.java +++ b/src/main/java/org/onap/aai/datarouter/entity/OxmEntityDescriptor.java @@ -73,7 +73,7 @@ public class OxmEntityDescriptor { return false; } - if ( this.searchableAttributes.size() > 0 ) { + if ( !this.searchableAttributes.isEmpty() ) { return true; } @@ -121,4 +121,4 @@ public class OxmEntityDescriptor { + ", suggestableAttributes=" + suggestableAttributes + ", isSuggestableEntity=" + isSuggestableEntity + "]"; } -} \ No newline at end of file +}