openhab-core/bundles/org.openhab.core.model.scri...
Wouter Born be69d2254e Use !isEmpty() instead of "size() > 0" or "size() != 0" ()
* 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
..
src/org/eclipse/smarthome/model/script/runtime Use !isEmpty() instead of "size() > 0" or "size() != 0" () 2019-10-21 09:00:52 +02:00
.classpath mavenize openHAB and integrate mavenized ESH repository () 2019-01-28 13:07:31 +01:00
.project mavenize openHAB and integrate mavenized ESH repository () 2019-01-28 13:07:31 +01:00
NOTICE Updated NOTICE files to openHAB () 2019-02-15 10:46:18 +01:00
bnd.bnd mavenize openHAB and integrate mavenized ESH repository () 2019-01-28 13:07:31 +01:00
model.profile-marker mavenize openHAB and integrate mavenized ESH repository () 2019-01-28 13:07:31 +01:00
pom.xml Fixed POM XML Shema Definition path () 2019-10-12 08:52:16 +02:00