Use isEmpty to check collection is empty or not
[aai/data-router.git] / 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
+}