[infrastructure] move infered nullness warnings to error and update EEA (#8949)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
@@ -18,7 +18,6 @@ import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.openhab.binding.digitalstrom.internal.DigitalSTROMBindingConstants;
|
||||
import org.openhab.binding.digitalstrom.internal.lib.config.Config;
|
||||
import org.openhab.binding.digitalstrom.internal.lib.serverconnection.DsAPI;
|
||||
@@ -81,7 +80,7 @@ public class BridgeDiscoveryService extends AbstractDiscoveryService {
|
||||
if (dsidMap != null) {
|
||||
dSID = dsidMap.get(JSONApiResponseKeysEnum.DSID.getKey());
|
||||
}
|
||||
if (StringUtils.isNotBlank(dSID)) {
|
||||
if (dSID != null && !dSID.isBlank()) {
|
||||
return new ThingUID(DigitalSTROMBindingConstants.THING_TYPE_DSS_BRIDGE, dSID);
|
||||
} else {
|
||||
logger.error("Can't get server dSID to generate ThingUID. Please add the server manually.");
|
||||
|
||||
@@ -19,7 +19,6 @@ import java.util.Set;
|
||||
|
||||
import javax.jmdns.ServiceInfo;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.openhab.binding.digitalstrom.internal.DigitalSTROMBindingConstants;
|
||||
import org.openhab.binding.digitalstrom.internal.lib.config.Config;
|
||||
import org.openhab.binding.digitalstrom.internal.lib.serverconnection.DsAPI;
|
||||
@@ -84,7 +83,7 @@ public class BridgeMDNSDiscoveryParticipant implements MDNSDiscoveryParticipant
|
||||
if (dsidMap != null) {
|
||||
dSID = dsidMap.get(JSONApiResponseKeysEnum.DSID.getKey());
|
||||
}
|
||||
if (StringUtils.isNotBlank(dSID)) {
|
||||
if (dSID != null && !dSID.isBlank()) {
|
||||
return new ThingUID(DigitalSTROMBindingConstants.THING_TYPE_DSS_BRIDGE, dSID);
|
||||
} else {
|
||||
logger.error("Can't get server dSID to generate thing UID. Please add the server manually.");
|
||||
|
||||
Reference in New Issue
Block a user