Reduce SAT warnings (#15090)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich
2023-06-15 00:02:10 +02:00
committed by GitHub
parent 7ef268f4d2
commit a5c47aebee
23 changed files with 8 additions and 56 deletions

View File

@@ -85,7 +85,6 @@ public abstract class ADThingHandler extends BaseThingHandler {
if (bridgeStatus == ThingStatus.ONLINE
&& getThing().getStatusInfo().getStatusDetail() == ThingStatusDetail.BRIDGE_OFFLINE) {
initDeviceState();
} else if (bridgeStatus == ThingStatus.OFFLINE) {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.BRIDGE_OFFLINE);
}

View File

@@ -82,7 +82,6 @@ public class KeypadMessage extends ADMessage {
this.nbeeps = Integer.parseInt(parts.get(0).substring(6, 7));
this.lower = Integer.parseInt(parts.get(0).substring(7, 17), 2);
this.status = ((upper & 0x1F) << 13) | ((nbeeps & 0x3) << 10) | lower;
} catch (NumberFormatException e) {
throw new IllegalArgumentException("keypad msg contains invalid number: " + e.getMessage(), e);
}