[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:
J-N-K
2020-11-12 21:07:11 +01:00
committed by GitHub
parent 0856a0b3f2
commit ba4c96d99d
155 changed files with 644 additions and 632 deletions

View File

@@ -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());