Use isEmpty to check collection is empty or not 19/17219/2
authorrama-huawei <rama.subba.reddy.s@huawei.com>
Wed, 4 Oct 2017 13:12:26 +0000 (18:42 +0530)
committerRama SubbaReddy <rama.subba.reddy.s@huawei.com>
Fri, 6 Oct 2017 05:30:05 +0000 (05:30 +0000)
Issue-id: AAI-415

Change-Id: Ia5765efb2f6f9184bb702de1ee60bfab9ab933e1
Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
src/main/java/org/onap/aai/datarouter/entity/OxmEntityDescriptor.java

index ed8b9fd..a848bd2 100644 (file)
@@ -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
+}