diff options
author | rama-huawei <rama.subba.reddy.s@huawei.com> | 2017-10-04 18:42:26 +0530 |
---|---|---|
committer | Rama SubbaReddy <rama.subba.reddy.s@huawei.com> | 2017-10-06 05:30:05 +0000 |
commit | 14326b84c4a78c17de6cedf50072cd4096d8a02d (patch) | |
tree | dfca9e2955570342b94f1908d08008d3208b9e1b /src/main/java/org | |
parent | e6be129e4865104321cdd6313f9729c4e7b07d22 (diff) |
Use isEmpty to check collection is empty or not
Issue-id: AAI-415
Change-Id: Ia5765efb2f6f9184bb702de1ee60bfab9ab933e1
Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/onap/aai/datarouter/entity/OxmEntityDescriptor.java | 4 |
1 files changed, 2 insertions, 2 deletions
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 +} |