Reduce SAT warnings (#15090)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user