From 1d8198157422913730de85f90ef717e523e063bd Mon Sep 17 00:00:00 2001 From: Christian Schlipp Date: Tue, 29 Dec 2020 13:45:35 +0100 Subject: [PATCH] Fix Compiler warnings in V3 branch Signed-off-by: Christian Schlipp --- .../wlanthermo/internal/api/mini/WlanThermoMiniHandler.java | 2 +- .../wlanthermo/internal/api/nano/WlanThermoNanoV1Handler.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/org.openhab.binding.wlanthermo/src/main/java/org/openhab/binding/wlanthermo/internal/api/mini/WlanThermoMiniHandler.java b/bundles/org.openhab.binding.wlanthermo/src/main/java/org/openhab/binding/wlanthermo/internal/api/mini/WlanThermoMiniHandler.java index 85b68e3124660..da5ba095e293a 100644 --- a/bundles/org.openhab.binding.wlanthermo/src/main/java/org/openhab/binding/wlanthermo/internal/api/mini/WlanThermoMiniHandler.java +++ b/bundles/org.openhab.binding.wlanthermo/src/main/java/org/openhab/binding/wlanthermo/internal/api/mini/WlanThermoMiniHandler.java @@ -52,7 +52,7 @@ public class WlanThermoMiniHandler extends BaseThingHandler { private final ScheduledExecutorService scheduler = ThreadPoolManager .getScheduledPool(WlanThermoBindingConstants.WLANTHERMO_THREAD_POOL); private final Gson gson = new Gson(); - private App app = new App(); + private @Nullable App app = new App(); public WlanThermoMiniHandler(Thing thing, HttpClient httpClient) { super(thing); diff --git a/bundles/org.openhab.binding.wlanthermo/src/main/java/org/openhab/binding/wlanthermo/internal/api/nano/WlanThermoNanoV1Handler.java b/bundles/org.openhab.binding.wlanthermo/src/main/java/org/openhab/binding/wlanthermo/internal/api/nano/WlanThermoNanoV1Handler.java index fea5e893ad466..bd7da52b52318 100644 --- a/bundles/org.openhab.binding.wlanthermo/src/main/java/org/openhab/binding/wlanthermo/internal/api/nano/WlanThermoNanoV1Handler.java +++ b/bundles/org.openhab.binding.wlanthermo/src/main/java/org/openhab/binding/wlanthermo/internal/api/nano/WlanThermoNanoV1Handler.java @@ -57,8 +57,8 @@ public class WlanThermoNanoV1Handler extends BaseThingHandler { private final ScheduledExecutorService scheduler = ThreadPoolManager .getScheduledPool(WlanThermoBindingConstants.WLANTHERMO_THREAD_POOL); private final Gson gson = new Gson(); - private Data data = new Data(); - private Settings settings = new Settings(); + private @Nullable Data data = new Data(); + private @Nullable Settings settings = new Settings(); public WlanThermoNanoV1Handler(Thing thing, HttpClient httpClient) { super(thing);