[velux] eliminate dependency on org.apache.commons.lang.StringUtils (#8626)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
This commit is contained in:
parent
1b0876f719
commit
817e02b53f
|
@ -12,8 +12,6 @@
|
||||||
*/
|
*/
|
||||||
package org.openhab.binding.velux.internal;
|
package org.openhab.binding.velux.internal;
|
||||||
|
|
||||||
import static org.apache.commons.lang.StringUtils.isNotBlank;
|
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
|
|
||||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||||
|
@ -65,11 +63,11 @@ public class VeluxBinding extends VeluxBridgeConfiguration {
|
||||||
logger.debug("No configuration found, using default values.");
|
logger.debug("No configuration found, using default values.");
|
||||||
} else {
|
} else {
|
||||||
logger.trace("VeluxBinding(): checking {}.", VeluxBridgeConfiguration.BRIDGE_PROTOCOL);
|
logger.trace("VeluxBinding(): checking {}.", VeluxBridgeConfiguration.BRIDGE_PROTOCOL);
|
||||||
if (isNotBlank(uncheckedConfiguration.protocol)) {
|
if (!uncheckedConfiguration.protocol.isBlank()) {
|
||||||
this.protocol = uncheckedConfiguration.protocol;
|
this.protocol = uncheckedConfiguration.protocol;
|
||||||
}
|
}
|
||||||
logger.trace("VeluxBinding(): checking {}.", VeluxBridgeConfiguration.BRIDGE_IPADDRESS);
|
logger.trace("VeluxBinding(): checking {}.", VeluxBridgeConfiguration.BRIDGE_IPADDRESS);
|
||||||
if (isNotBlank(uncheckedConfiguration.ipAddress)) {
|
if (!uncheckedConfiguration.ipAddress.isBlank()) {
|
||||||
this.ipAddress = uncheckedConfiguration.ipAddress;
|
this.ipAddress = uncheckedConfiguration.ipAddress;
|
||||||
}
|
}
|
||||||
logger.trace("VeluxBinding(): checking {}.", VeluxBridgeConfiguration.BRIDGE_TCPPORT);
|
logger.trace("VeluxBinding(): checking {}.", VeluxBridgeConfiguration.BRIDGE_TCPPORT);
|
||||||
|
@ -77,7 +75,7 @@ public class VeluxBinding extends VeluxBridgeConfiguration {
|
||||||
this.tcpPort = uncheckedConfiguration.tcpPort;
|
this.tcpPort = uncheckedConfiguration.tcpPort;
|
||||||
}
|
}
|
||||||
logger.trace("VeluxBinding(): checking {}.", VeluxBridgeConfiguration.BRIDGE_PASSWORD);
|
logger.trace("VeluxBinding(): checking {}.", VeluxBridgeConfiguration.BRIDGE_PASSWORD);
|
||||||
if (isNotBlank(uncheckedConfiguration.password)) {
|
if (!uncheckedConfiguration.password.isBlank()) {
|
||||||
this.password = uncheckedConfiguration.password;
|
this.password = uncheckedConfiguration.password;
|
||||||
}
|
}
|
||||||
logger.trace("VeluxBinding(): checking {}.", VeluxBridgeConfiguration.BRIDGE_TIMEOUT_MSECS);
|
logger.trace("VeluxBinding(): checking {}.", VeluxBridgeConfiguration.BRIDGE_TIMEOUT_MSECS);
|
||||||
|
|
Loading…
Reference in New Issue