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?p=aai%2Fdata-router.git;a=commitdiff_plain;h=14326b84c4a78c17de6cedf50072cd4096d8a02d 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 +}