[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:
@@ -20,13 +20,7 @@ import java.math.RoundingMode;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URISyntaxException;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
@@ -365,7 +359,7 @@ public class VenstarThermostatHandler extends ConfigStatusThingHandler {
|
||||
if (!isFutureValid(localUpdatesTask)) {
|
||||
return;
|
||||
}
|
||||
infoData = gson.fromJson(response, VenstarInfoData.class);
|
||||
infoData = Objects.requireNonNull(gson.fromJson(response, VenstarInfoData.class));
|
||||
updateUnits(infoData);
|
||||
updateIfChanged(CHANNEL_HEATING_SETPOINT, getHeatingSetpoint());
|
||||
updateIfChanged(CHANNEL_COOLING_SETPOINT, getCoolingSetpoint());
|
||||
|
||||
Reference in New Issue
Block a user