*/
package org.openhab.binding.velux.internal;
-import static org.apache.commons.lang.StringUtils.isNotBlank;
-
import java.lang.reflect.Field;
import org.eclipse.jdt.annotation.NonNullByDefault;
logger.debug("No configuration found, using default values.");
} else {
logger.trace("VeluxBinding(): checking {}.", VeluxBridgeConfiguration.BRIDGE_PROTOCOL);
- if (isNotBlank(uncheckedConfiguration.protocol)) {
+ if (!uncheckedConfiguration.protocol.isBlank()) {
this.protocol = uncheckedConfiguration.protocol;
}
logger.trace("VeluxBinding(): checking {}.", VeluxBridgeConfiguration.BRIDGE_IPADDRESS);
- if (isNotBlank(uncheckedConfiguration.ipAddress)) {
+ if (!uncheckedConfiguration.ipAddress.isBlank()) {
this.ipAddress = uncheckedConfiguration.ipAddress;
}
logger.trace("VeluxBinding(): checking {}.", VeluxBridgeConfiguration.BRIDGE_TCPPORT);
this.tcpPort = uncheckedConfiguration.tcpPort;
}
logger.trace("VeluxBinding(): checking {}.", VeluxBridgeConfiguration.BRIDGE_PASSWORD);
- if (isNotBlank(uncheckedConfiguration.password)) {
+ if (!uncheckedConfiguration.password.isBlank()) {
this.password = uncheckedConfiguration.password;
}
logger.trace("VeluxBinding(): checking {}.", VeluxBridgeConfiguration.BRIDGE_TIMEOUT_MSECS);