openhab-core/bundles/org.openhab.core.voice/src
Wouter Born be69d2254e Use !isEmpty() instead of "size() > 0" or "size() != 0" (#1155)
* Use !isEmpty() instead of "size() > 0" or "size() != 0"

!isEmpty() expresses the intent more clearly and is therefore preferred.
Counting the number of elements can also be an expensive operation e.g. when using linked lists.

Co-Authored-By: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-21 09:00:52 +02:00
..
main Use !isEmpty() instead of "size() > 0" or "size() != 0" (#1155) 2019-10-21 09:00:52 +02:00
test/java/org/eclipse/smarthome/core/voice Fix SAT "Initial contribution" warnings (#1100) 2019-10-07 21:25:40 -07:00