Fix Java and Jetty deprecations (#10349)
Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -181,7 +181,7 @@ public class ZWayZAutomationDeviceHandler extends ZWayDeviceHandler {
|
||||
}
|
||||
|
||||
Calendar lastUpdateOfDevice = Calendar.getInstance();
|
||||
lastUpdateOfDevice.setTimeInMillis(new Long(device.getUpdateTime()) * 1000);
|
||||
lastUpdateOfDevice.setTimeInMillis(Long.valueOf(device.getUpdateTime()) * 1000);
|
||||
|
||||
if (lastUpdate == null || lastUpdateOfDevice.after(lastUpdate)) {
|
||||
lastUpdate = lastUpdateOfDevice;
|
||||
|
||||
@@ -211,7 +211,8 @@ public class ZWayZWaveDeviceHandler extends ZWayDeviceHandler {
|
||||
}
|
||||
|
||||
Calendar lastUpdateOfDevice = Calendar.getInstance();
|
||||
lastUpdateOfDevice.setTimeInMillis(new Long(zwaveDevice.getData().getLastReceived().getUpdateTime()) * 1000);
|
||||
lastUpdateOfDevice
|
||||
.setTimeInMillis(Long.valueOf(zwaveDevice.getData().getLastReceived().getUpdateTime()) * 1000);
|
||||
|
||||
if (lastUpdate == null || lastUpdateOfDevice.after(lastUpdate)) {
|
||||
lastUpdate = lastUpdateOfDevice;
|
||||
|
||||
Reference in New Issue
Block a user