summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorrama-huawei <rama.subba.reddy.s@huawei.com>2017-10-04 18:42:26 +0530
committerRama SubbaReddy <rama.subba.reddy.s@huawei.com>2017-10-06 05:30:05 +0000
commit14326b84c4a78c17de6cedf50072cd4096d8a02d (patch)
treedfca9e2955570342b94f1908d08008d3208b9e1b /src
parente6be129e4865104321cdd6313f9729c4e7b07d22 (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')
-rw-r--r--src/main/java/org/onap/aai/datarouter/entity/OxmEntityDescriptor.java4
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
+}