Use Collection.isEmpty (#10525)
Fixes 47 SAT UseCollectionIsEmpty findings. Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -153,7 +153,7 @@ public class EcobeeDiscoveryService extends AbstractDiscoveryService implements
|
||||
|
||||
private synchronized void discoverSensors() {
|
||||
List<Thing> thermostatThings = bridgeHandler.getThing().getThings();
|
||||
if (thermostatThings.size() == 0) {
|
||||
if (thermostatThings.isEmpty()) {
|
||||
logger.debug("EcobeeDiscovery: Skipping sensor discovery because there are no thermostat things");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user