From a121c82cb5cfece10bf83f86a4a85ffaf6589df6 Mon Sep 17 00:00:00 2001 From: Rene Scherer Date: Sat, 12 Oct 2019 20:57:20 +0100 Subject: [PATCH] [surepetcare] minor checkstyle fixes Signed-off-by: Rene Scherer --- .../binding/surepetcare/internal/data/SurePetcareDevice.java | 2 +- .../surepetcare/internal/data/SurePetcareDeviceControl.java | 2 +- .../surepetcare/internal/data/SurePetcareDeviceCurfew.java | 2 +- .../surepetcare/internal/data/SurePetcareDeviceCurfewList.java | 2 +- .../surepetcare/internal/handler/SurePetcareBridgeHandler.java | 2 -- .../surepetcare/internal/handler/SurePetcarePetHandler.java | 1 - 6 files changed, 4 insertions(+), 7 deletions(-) diff --git a/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/data/SurePetcareDevice.java b/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/data/SurePetcareDevice.java index ab01a6cd5f992..cbe6c1f9dc96f 100644 --- a/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/data/SurePetcareDevice.java +++ b/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/data/SurePetcareDevice.java @@ -187,7 +187,7 @@ public SurePetcareDevice assign(SurePetcareDevice newdev) { this.index = newdev.index; this.pairingAt = newdev.pairingAt; this.control = newdev.control; - this.parent = newdev.parent; // FIXME link to correct parent device + this.parent = newdev.parent; this.status = newdev.status; return this; } diff --git a/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/data/SurePetcareDeviceControl.java b/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/data/SurePetcareDeviceControl.java index 5d736556cd195..5594172188f32 100644 --- a/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/data/SurePetcareDeviceControl.java +++ b/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/data/SurePetcareDeviceControl.java @@ -190,4 +190,4 @@ public String toString() { return builder.toString(); } -} \ No newline at end of file +} diff --git a/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/data/SurePetcareDeviceCurfew.java b/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/data/SurePetcareDeviceCurfew.java index e2d26cfd3261f..d28173bab13df 100644 --- a/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/data/SurePetcareDeviceCurfew.java +++ b/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/data/SurePetcareDeviceCurfew.java @@ -40,4 +40,4 @@ public String toString() { return enabled.toString() + "," + lockTime + "," + unlockTime; } -} \ No newline at end of file +} diff --git a/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/data/SurePetcareDeviceCurfewList.java b/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/data/SurePetcareDeviceCurfewList.java index a5f3404912024..ba334542b71ae 100644 --- a/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/data/SurePetcareDeviceCurfewList.java +++ b/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/data/SurePetcareDeviceCurfewList.java @@ -86,4 +86,4 @@ public SurePetcareDeviceCurfewList compact() { } return compactList; } -} \ No newline at end of file +} diff --git a/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/handler/SurePetcareBridgeHandler.java b/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/handler/SurePetcareBridgeHandler.java index 41233ddd90338..16aab1c3ed89a 100644 --- a/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/handler/SurePetcareBridgeHandler.java +++ b/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/handler/SurePetcareBridgeHandler.java @@ -86,7 +86,6 @@ public void initialize() { updateStatus(ThingStatus.ONLINE); updateState(BRIDGE_CHANNEL_ONLINE, OnOffType.ON); updateThings(); - } catch (AuthenticationException e) { updateStatus(ThingStatus.OFFLINE); } @@ -115,7 +114,6 @@ public void initialize() { updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, "@text/offline.conf-error-invalid-refresh-intervals"); } - } @SuppressWarnings("null") diff --git a/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/handler/SurePetcarePetHandler.java b/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/handler/SurePetcarePetHandler.java index 44a223376f204..d62eaa991a84e 100644 --- a/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/handler/SurePetcarePetHandler.java +++ b/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/handler/SurePetcarePetHandler.java @@ -96,7 +96,6 @@ public void handleCommand(ChannelUID channelUID, Command command) { @Override protected void updateThing() { synchronized (petcareAPI) { - SurePetcarePet pet = petcareAPI.getPet(thing.getUID().getId()); if (pet != null) { logger.debug("Updating all thing channels for pet : {}", pet.toString());