From 11c23b5e9a56d4d4e255b26b55d5252e5703fd5d Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Fri, 5 Jan 2024 18:29:13 +0100 Subject: [PATCH] Remove unnecessary semicolons This helps with stopping the proliferation of unnecessary semicolons. Signed-off-by: Wouter Born --- .../openhab/binding/airq/internal/AirqHandler.java | 2 +- .../discovery/SmartHomeDevicesDiscovery.java | 2 +- .../binding/caddx/internal/CaddxDirection.java | 2 +- .../binding/caddx/internal/CaddxSource.java | 2 +- .../binding/ecotouch/internal/EcoTouchTags.java | 2 +- .../internal/handler/FoobotAccountHandlerTest.java | 2 +- .../internal/handler/FoobotDeviceHandlerTest.java | 2 +- .../internal/things/GroupePSAHandler.java | 2 +- .../icloud/internal/utilities/ListUtil.java | 2 +- .../internal/command/InsteonCommandExtension.java | 2 +- .../internal/device/DeviceFeatureListener.java | 2 +- .../internal/device/GroupMessageStateMachine.java | 4 ++-- .../binding/irobot/internal/dto/MQTTProtocol.java | 2 +- .../binding/knx/internal/client/IPClient.java | 2 +- .../internal/protocol/leap/dto/ZoneStatus.java | 2 +- .../internal/json/ResponseFieldDTO.java | 14 +++++++------- .../miio/internal/handler/MiIoAbstractHandler.java | 2 +- .../internal/model/RouterosInterfaceBase.java | 2 +- .../mycroft/internal/api/dto/MessageSpeak.java | 2 +- .../nanoleaf/internal/layout/shape/Shape.java | 2 +- .../internal/protocol/NhcThermostat.java | 2 +- .../protocol/NikoHomeControlCommunication.java | 4 ++-- .../ojelectronics/internal/ThermostatHandler.java | 4 ++-- .../internal/handler/OpenWebNetAlarmHandler.java | 2 +- .../handler/OpenWebNetAutomationHandler.java | 2 +- .../handler/OpenWebNetLightingHandler.java | 2 +- .../handler/OpenWebNetScenarioHandler.java | 2 +- .../internal/handler/OpenWebNetThingHandler.java | 2 +- .../pulseaudio/internal/PulseAudioAudioSource.java | 2 +- .../qbus/internal/protocol/QbusCommunication.java | 2 +- .../sensebox/internal/handler/SenseBoxHandler.java | 2 +- .../internal/handler/BaseSensorHandler.java | 2 +- .../shelly/internal/api1/Shelly1ApiJsonDTO.java | 2 +- .../java/org/smslib/message/AbstractMessage.java | 2 +- .../binding/solax/internal/model/InverterData.java | 4 ++-- .../binding/solax/internal/util/GsonSupplier.java | 2 +- .../internal/handler/SqueezeBoxServerHandler.java | 2 +- .../unifi/internal/api/cache/UniFiCache.java | 2 +- .../upnpcontrol/internal/handler/UpnpHandler.java | 2 +- .../internal/bridge/slip/FunctionalParameters.java | 2 +- .../velux/internal/handler/VeluxBridgeHandler.java | 4 ++-- .../binding/verisure/internal/VerisureSession.java | 2 +- .../accessories/DummyHomekitAccessory.java | 2 +- .../internal/InMemoryPersistenceService.java | 4 ++-- 44 files changed, 56 insertions(+), 56 deletions(-) diff --git a/bundles/org.openhab.binding.airq/src/main/java/org/openhab/binding/airq/internal/AirqHandler.java b/bundles/org.openhab.binding.airq/src/main/java/org/openhab/binding/airq/internal/AirqHandler.java index a878a2ce76045..7b126a6bd3426 100644 --- a/bundles/org.openhab.binding.airq/src/main/java/org/openhab/binding/airq/internal/AirqHandler.java +++ b/bundles/org.openhab.binding.airq/src/main/java/org/openhab/binding/airq/internal/AirqHandler.java @@ -802,4 +802,4 @@ private void changeSettings(JsonObject jsonchange) { } } } -}; +} diff --git a/bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/discovery/SmartHomeDevicesDiscovery.java b/bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/discovery/SmartHomeDevicesDiscovery.java index 89c48d08dc100..6718a47e43c54 100644 --- a/bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/discovery/SmartHomeDevicesDiscovery.java +++ b/bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/discovery/SmartHomeDevicesDiscovery.java @@ -129,7 +129,7 @@ public void activate(@Nullable Map config) { if (activateTimeStamp == null) { this.activateTimeStamp = new Date().getTime(); } - }; + } synchronized void setSmartHomeDevices(List deviceList) { int smartHomeDeviceDiscoveryMode = accountHandler.getSmartHomeDevicesDiscoveryMode(); diff --git a/bundles/org.openhab.binding.caddx/src/main/java/org/openhab/binding/caddx/internal/CaddxDirection.java b/bundles/org.openhab.binding.caddx/src/main/java/org/openhab/binding/caddx/internal/CaddxDirection.java index 60de0f818d0fc..7b58c47480b9b 100644 --- a/bundles/org.openhab.binding.caddx/src/main/java/org/openhab/binding/caddx/internal/CaddxDirection.java +++ b/bundles/org.openhab.binding.caddx/src/main/java/org/openhab/binding/caddx/internal/CaddxDirection.java @@ -23,4 +23,4 @@ public enum CaddxDirection { IN, OUT -}; +} diff --git a/bundles/org.openhab.binding.caddx/src/main/java/org/openhab/binding/caddx/internal/CaddxSource.java b/bundles/org.openhab.binding.caddx/src/main/java/org/openhab/binding/caddx/internal/CaddxSource.java index 60b7ee0e73634..581967019097b 100644 --- a/bundles/org.openhab.binding.caddx/src/main/java/org/openhab/binding/caddx/internal/CaddxSource.java +++ b/bundles/org.openhab.binding.caddx/src/main/java/org/openhab/binding/caddx/internal/CaddxSource.java @@ -26,4 +26,4 @@ public enum CaddxSource { KEYPAD, PARTITION, ZONE -}; +} diff --git a/bundles/org.openhab.binding.ecotouch/src/main/java/org/openhab/binding/ecotouch/internal/EcoTouchTags.java b/bundles/org.openhab.binding.ecotouch/src/main/java/org/openhab/binding/ecotouch/internal/EcoTouchTags.java index fbe61cf3248e2..d9a7bf9b200db 100644 --- a/bundles/org.openhab.binding.ecotouch/src/main/java/org/openhab/binding/ecotouch/internal/EcoTouchTags.java +++ b/bundles/org.openhab.binding.ecotouch/src/main/java/org/openhab/binding/ecotouch/internal/EcoTouchTags.java @@ -1155,7 +1155,7 @@ public enum Type { Bitfield, Float, Enum - }; + } /** * The format of the response of the heat pump diff --git a/bundles/org.openhab.binding.foobot/src/test/java/org/openhab/binding/foobot/internal/handler/FoobotAccountHandlerTest.java b/bundles/org.openhab.binding.foobot/src/test/java/org/openhab/binding/foobot/internal/handler/FoobotAccountHandlerTest.java index 5fb021f69af28..e595c889a2537 100644 --- a/bundles/org.openhab.binding.foobot/src/test/java/org/openhab/binding/foobot/internal/handler/FoobotAccountHandlerTest.java +++ b/bundles/org.openhab.binding.foobot/src/test/java/org/openhab/binding/foobot/internal/handler/FoobotAccountHandlerTest.java @@ -42,7 +42,7 @@ protected String request(String url, String apiKey) throws FoobotApiException { } catch (IOException e) { throw new AssertionError(e.getMessage()); } - }; + } }; private final FoobotAccountHandler handler = new FoobotAccountHandler(bridge, connector); diff --git a/bundles/org.openhab.binding.foobot/src/test/java/org/openhab/binding/foobot/internal/handler/FoobotDeviceHandlerTest.java b/bundles/org.openhab.binding.foobot/src/test/java/org/openhab/binding/foobot/internal/handler/FoobotDeviceHandlerTest.java index 7f9f5db08f763..845cbfa93ffd3 100644 --- a/bundles/org.openhab.binding.foobot/src/test/java/org/openhab/binding/foobot/internal/handler/FoobotDeviceHandlerTest.java +++ b/bundles/org.openhab.binding.foobot/src/test/java/org/openhab/binding/foobot/internal/handler/FoobotDeviceHandlerTest.java @@ -45,7 +45,7 @@ protected String request(String url, String apiKey) throws FoobotApiException { } catch (IOException e) { throw new AssertionError(e.getMessage()); } - }; + } }; private final FoobotDeviceHandler handler = new FoobotDeviceHandler(thing, connector); diff --git a/bundles/org.openhab.binding.groupepsa/src/main/java/org/openhab/binding/groupepsa/internal/things/GroupePSAHandler.java b/bundles/org.openhab.binding.groupepsa/src/main/java/org/openhab/binding/groupepsa/internal/things/GroupePSAHandler.java index d5377212ab868..4db989700de46 100644 --- a/bundles/org.openhab.binding.groupepsa/src/main/java/org/openhab/binding/groupepsa/internal/things/GroupePSAHandler.java +++ b/bundles/org.openhab.binding.groupepsa/src/main/java/org/openhab/binding/groupepsa/internal/things/GroupePSAHandler.java @@ -119,7 +119,7 @@ private void pollStatus() { } else { updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.BRIDGE_OFFLINE); } - }; + } @Override public void handleCommand(ChannelUID channelUID, Command command) { diff --git a/bundles/org.openhab.binding.icloud/src/main/java/org/openhab/binding/icloud/internal/utilities/ListUtil.java b/bundles/org.openhab.binding.icloud/src/main/java/org/openhab/binding/icloud/internal/utilities/ListUtil.java index ab4061485e7cd..e81e6bc7ffeac 100644 --- a/bundles/org.openhab.binding.icloud/src/main/java/org/openhab/binding/icloud/internal/utilities/ListUtil.java +++ b/bundles/org.openhab.binding.icloud/src/main/java/org/openhab/binding/icloud/internal/utilities/ListUtil.java @@ -30,7 +30,7 @@ public abstract class ListUtil { private ListUtil() { - }; + } /** * Replace entries in the given originalList with entries from replacements, if the have an equal key. diff --git a/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/command/InsteonCommandExtension.java b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/command/InsteonCommandExtension.java index a5cfd57e863d9..6dc10918cf9a1 100644 --- a/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/command/InsteonCommandExtension.java +++ b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/command/InsteonCommandExtension.java @@ -63,7 +63,7 @@ private enum MessageType { STANDARD, EXTENDED, EXTENDED_2 - }; + } @Nullable private InsteonNetworkHandler handler; diff --git a/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/device/DeviceFeatureListener.java b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/device/DeviceFeatureListener.java index f8922e96e5e1b..8ec6d5d4a63eb 100644 --- a/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/device/DeviceFeatureListener.java +++ b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/device/DeviceFeatureListener.java @@ -41,7 +41,7 @@ public class DeviceFeatureListener { public enum StateChangeType { ALWAYS, CHANGED - }; + } private String itemName; private ChannelUID channelUID; diff --git a/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/device/GroupMessageStateMachine.java b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/device/GroupMessageStateMachine.java index 27a87837a5d7d..bbd8f598b89d0 100644 --- a/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/device/GroupMessageStateMachine.java +++ b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/device/GroupMessageStateMachine.java @@ -90,7 +90,7 @@ enum GroupMessage { BCAST, CLEAN, SUCCESS - }; + } /** * The state of the machine (i.e. what message we are expecting next). @@ -100,7 +100,7 @@ enum State { EXPECT_BCAST, EXPECT_CLEAN, EXPECT_SUCCESS - }; + } private State state = State.EXPECT_BCAST; private long lastUpdated = 0; diff --git a/bundles/org.openhab.binding.irobot/src/main/java/org/openhab/binding/irobot/internal/dto/MQTTProtocol.java b/bundles/org.openhab.binding.irobot/src/main/java/org/openhab/binding/irobot/internal/dto/MQTTProtocol.java index c4d27feb7ec74..7f9fad85e22aa 100644 --- a/bundles/org.openhab.binding.irobot/src/main/java/org/openhab/binding/irobot/internal/dto/MQTTProtocol.java +++ b/bundles/org.openhab.binding.irobot/src/main/java/org/openhab/binding/irobot/internal/dto/MQTTProtocol.java @@ -336,4 +336,4 @@ public static class BlidResponse { public String robotid; public String hostname; } -}; +} diff --git a/bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/client/IPClient.java b/bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/client/IPClient.java index 24cd4cf3c347a..ba9261471efba 100644 --- a/bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/client/IPClient.java +++ b/bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/client/IPClient.java @@ -56,7 +56,7 @@ public enum IpConnectionType { ROUTER, SECURE_TUNNEL, SECURE_ROUTER - }; + } private final Logger logger = LoggerFactory.getLogger(IPClient.class); diff --git a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/protocol/leap/dto/ZoneStatus.java b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/protocol/leap/dto/ZoneStatus.java index 137d1969d5d1b..714504cc18a32 100644 --- a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/protocol/leap/dto/ZoneStatus.java +++ b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/protocol/leap/dto/ZoneStatus.java @@ -36,7 +36,7 @@ public class ZoneStatus extends AbstractMessageBody { @SerializedName("FanSpeed") public FanSpeedType fanSpeed; @SerializedName("Zone") - public Href zone = new Href();; + public Href zone = new Href(); @SerializedName("StatusAccuracy") public String statusAccuracy = ""; // "Good" or ?? diff --git a/bundles/org.openhab.binding.meteoalerte/src/main/java/org/openhab/binding/meteoalerte/internal/json/ResponseFieldDTO.java b/bundles/org.openhab.binding.meteoalerte/src/main/java/org/openhab/binding/meteoalerte/internal/json/ResponseFieldDTO.java index a2e6e46fdc242..8d52a2fd6e369 100644 --- a/bundles/org.openhab.binding.meteoalerte/src/main/java/org/openhab/binding/meteoalerte/internal/json/ResponseFieldDTO.java +++ b/bundles/org.openhab.binding.meteoalerte/src/main/java/org/openhab/binding/meteoalerte/internal/json/ResponseFieldDTO.java @@ -55,24 +55,24 @@ public enum AlertLevel { @SerializedName("nom_dept") private String nomDept = ""; @SerializedName("etat_grand_froid") - private AlertLevel grandFroid = AlertLevel.UNKNOWN;; + private AlertLevel grandFroid = AlertLevel.UNKNOWN; @SerializedName("noversion") private String noVersion = ""; @SerializedName("etat_pluie_inondation") - private AlertLevel pluieInondation = AlertLevel.UNKNOWN;; + private AlertLevel pluieInondation = AlertLevel.UNKNOWN; @SerializedName("etat_neige") - private AlertLevel neige = AlertLevel.UNKNOWN;; + private AlertLevel neige = AlertLevel.UNKNOWN; @SerializedName("etat_vent") - private AlertLevel vent = AlertLevel.UNKNOWN;; + private AlertLevel vent = AlertLevel.UNKNOWN; @SerializedName("etat_inondation") - private AlertLevel inondation = AlertLevel.UNKNOWN;; + private AlertLevel inondation = AlertLevel.UNKNOWN; @SerializedName("etat_avalanches") - private AlertLevel avalanches = AlertLevel.UNKNOWN;; + private AlertLevel avalanches = AlertLevel.UNKNOWN; @SerializedName("etat_orage") private AlertLevel orage = AlertLevel.UNKNOWN; private int echeance; @SerializedName("etat_vague_submersion") - private AlertLevel vagueSubmersion = AlertLevel.UNKNOWN;; + private AlertLevel vagueSubmersion = AlertLevel.UNKNOWN; private String dep = ""; @SerializedName("vigilancecommentaire_texte") private String vigilanceComment = ""; diff --git a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoAbstractHandler.java b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoAbstractHandler.java index 8f22893d3fd99..6c1b0b9b68f9d 100644 --- a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoAbstractHandler.java +++ b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/handler/MiIoAbstractHandler.java @@ -114,7 +114,7 @@ public abstract class MiIoAbstractHandler extends BaseThingHandler implements Mi return "id:" + ret; } return "failed"; - });; + }); protected static final long CACHE_EXPIRY = TimeUnit.SECONDS.toMillis(5); protected static final long CACHE_EXPIRY_NETWORK = TimeUnit.SECONDS.toMillis(60); diff --git a/bundles/org.openhab.binding.mikrotik/src/main/java/org/openhab/binding/mikrotik/internal/model/RouterosInterfaceBase.java b/bundles/org.openhab.binding.mikrotik/src/main/java/org/openhab/binding/mikrotik/internal/model/RouterosInterfaceBase.java index e4b8dfa237d36..812bc15eeaa10 100644 --- a/bundles/org.openhab.binding.mikrotik/src/main/java/org/openhab/binding/mikrotik/internal/model/RouterosInterfaceBase.java +++ b/bundles/org.openhab.binding.mikrotik/src/main/java/org/openhab/binding/mikrotik/internal/model/RouterosInterfaceBase.java @@ -49,7 +49,7 @@ public RouterosInterfaceBase(Map props) { public String getApiType() { return getDesignedType().toString(); - }; + } public boolean validate() { return getDesignedType() == this.type; diff --git a/bundles/org.openhab.binding.mycroft/src/main/java/org/openhab/binding/mycroft/internal/api/dto/MessageSpeak.java b/bundles/org.openhab.binding.mycroft/src/main/java/org/openhab/binding/mycroft/internal/api/dto/MessageSpeak.java index d0ce8dfe776dd..1a4b91e51fd1e 100644 --- a/bundles/org.openhab.binding.mycroft/src/main/java/org/openhab/binding/mycroft/internal/api/dto/MessageSpeak.java +++ b/bundles/org.openhab.binding.mycroft/src/main/java/org/openhab/binding/mycroft/internal/api/dto/MessageSpeak.java @@ -45,7 +45,7 @@ public static class Data { public String utterance = ""; @SerializedName("expect_response") public String expectResponse = ""; - }; + } public static class Context { @SerializedName("client_name") diff --git a/bundles/org.openhab.binding.nanoleaf/src/main/java/org/openhab/binding/nanoleaf/internal/layout/shape/Shape.java b/bundles/org.openhab.binding.nanoleaf/src/main/java/org/openhab/binding/nanoleaf/internal/layout/shape/Shape.java index 65f3fcbf0f6a1..c4bb1e0a448c6 100644 --- a/bundles/org.openhab.binding.nanoleaf/src/main/java/org/openhab/binding/nanoleaf/internal/layout/shape/Shape.java +++ b/bundles/org.openhab.binding.nanoleaf/src/main/java/org/openhab/binding/nanoleaf/internal/layout/shape/Shape.java @@ -51,7 +51,7 @@ public Point2D getPosition() { public int getOrientation() { return orientation; - }; + } protected int getPanelId() { return panelId; diff --git a/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcThermostat.java b/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcThermostat.java index d2747d8354e5f..d7da59f8b55dc 100644 --- a/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcThermostat.java +++ b/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcThermostat.java @@ -304,7 +304,7 @@ public void executeMode(String mode) { logger.debug("Thermostat mode {} not recognized, default to Day mode", mode); } executeMode(intMode); - }; + } /** * Sends thermostat setpoint to Niko Home Control. This method is implemented in {@link NhcThermostat1} and diff --git a/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NikoHomeControlCommunication.java b/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NikoHomeControlCommunication.java index c852e3317c89f..e4cb1a2481988 100644 --- a/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NikoHomeControlCommunication.java +++ b/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NikoHomeControlCommunication.java @@ -204,12 +204,12 @@ public Map getEnergyMeters() { * */ public void startEnergyMeter(String energyMeterId) { - }; + } /** * Stop retrieving energy meter data from Niko Home Control. * */ public void stopEnergyMeter(String energyMeterId) { - }; + } } diff --git a/bundles/org.openhab.binding.ojelectronics/src/main/java/org/openhab/binding/ojelectronics/internal/ThermostatHandler.java b/bundles/org.openhab.binding.ojelectronics/src/main/java/org/openhab/binding/ojelectronics/internal/ThermostatHandler.java index def8ff33cc9dc..bbc8cc222aa11 100644 --- a/bundles/org.openhab.binding.ojelectronics/src/main/java/org/openhab/binding/ojelectronics/internal/ThermostatHandler.java +++ b/bundles/org.openhab.binding.ojelectronics/src/main/java/org/openhab/binding/ojelectronics/internal/ThermostatHandler.java @@ -363,7 +363,7 @@ private static Map createRegulationMap() { map.put(8, "boost"); map.put(9, "eco"); return map; - }; + } private static Map createRegulationReverseMap() { HashMap map = new HashMap<>(); @@ -375,7 +375,7 @@ private static Map createRegulationReverseMap() { map.put("boost", 8); map.put("eco", 9); return map; - }; + } private Map> createChannelRefreshActionMap() { HashMap> map = new HashMap<>(); diff --git a/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAlarmHandler.java b/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAlarmHandler.java index 8e798cf5a245b..c554f182c2677 100644 --- a/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAlarmHandler.java +++ b/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAlarmHandler.java @@ -116,7 +116,7 @@ protected void requestChannelState(ChannelUID channel) { @Override protected long getRefreshAllLastTS() { return lastAllDevicesRefreshTS; - }; + } @Override protected void refreshDevice(boolean refreshAll) { diff --git a/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAutomationHandler.java b/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAutomationHandler.java index d9ad14cfbd9c6..75642ab5f2ce7 100644 --- a/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAutomationHandler.java +++ b/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAutomationHandler.java @@ -155,7 +155,7 @@ protected void requestChannelState(ChannelUID channel) { @Override protected long getRefreshAllLastTS() { return lastAllDevicesRefreshTS; - }; + } @Override protected void refreshDevice(boolean refreshAll) { diff --git a/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetLightingHandler.java b/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetLightingHandler.java index f4644edb90099..bb3df121fb7ca 100644 --- a/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetLightingHandler.java +++ b/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetLightingHandler.java @@ -95,7 +95,7 @@ protected void requestChannelState(ChannelUID channel) { @Override protected long getRefreshAllLastTS() { return lastAllDevicesRefreshTS; - }; + } @Override protected void refreshDevice(boolean refreshAll) { diff --git a/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetScenarioHandler.java b/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetScenarioHandler.java index f4f3125070d9c..56e8c1a693a57 100644 --- a/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetScenarioHandler.java +++ b/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetScenarioHandler.java @@ -380,7 +380,7 @@ protected void requestChannelState(ChannelUID channel) { @Override protected long getRefreshAllLastTS() { return lastAllDevicesRefreshTS; - }; + } @Override protected void refreshDevice(boolean refreshAll) { diff --git a/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetThingHandler.java b/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetThingHandler.java index 9065265b3504d..763097bf187c0 100644 --- a/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetThingHandler.java +++ b/bundles/org.openhab.binding.openwebnet/src/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetThingHandler.java @@ -251,7 +251,7 @@ protected void requestChannelState(ChannelUID channel) { */ protected long getRefreshAllLastTS() { return -1; - }; + } /** * Refresh all devices for this handler diff --git a/bundles/org.openhab.binding.pulseaudio/src/main/java/org/openhab/binding/pulseaudio/internal/PulseAudioAudioSource.java b/bundles/org.openhab.binding.pulseaudio/src/main/java/org/openhab/binding/pulseaudio/internal/PulseAudioAudioSource.java index eae6c1f548b5d..863110143e470 100644 --- a/bundles/org.openhab.binding.pulseaudio/src/main/java/org/openhab/binding/pulseaudio/internal/PulseAudioAudioSource.java +++ b/bundles/org.openhab.binding.pulseaudio/src/main/java/org/openhab/binding/pulseaudio/internal/PulseAudioAudioSource.java @@ -296,5 +296,5 @@ public void close() throws IOException { closed = true; input.close(); } - }; + } } diff --git a/bundles/org.openhab.binding.qbus/src/main/java/org/openhab/binding/qbus/internal/protocol/QbusCommunication.java b/bundles/org.openhab.binding.qbus/src/main/java/org/openhab/binding/qbus/internal/protocol/QbusCommunication.java index 4779cf1b3cdd7..4268c42dc15bd 100644 --- a/bundles/org.openhab.binding.qbus/src/main/java/org/openhab/binding/qbus/internal/protocol/QbusCommunication.java +++ b/bundles/org.openhab.binding.qbus/src/main/java/org/openhab/binding/qbus/internal/protocol/QbusCommunication.java @@ -270,7 +270,7 @@ private void qbusListener() throws IOException, InterruptedException { qbusListenerRunning = false; logger.trace("Event listener thread stopped on thread {}", Thread.currentThread().getId()); - }; + } /** * Called by other methods to send json data to Qbus. diff --git a/bundles/org.openhab.binding.sensebox/src/main/java/org/openhab/binding/sensebox/internal/handler/SenseBoxHandler.java b/bundles/org.openhab.binding.sensebox/src/main/java/org/openhab/binding/sensebox/internal/handler/SenseBoxHandler.java index e296061367d94..ff946d7b051d1 100644 --- a/bundles/org.openhab.binding.sensebox/src/main/java/org/openhab/binding/sensebox/internal/handler/SenseBoxHandler.java +++ b/bundles/org.openhab.binding.sensebox/src/main/java/org/openhab/binding/sensebox/internal/handler/SenseBoxHandler.java @@ -149,7 +149,7 @@ private void publishData() { } else { updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR); } - }; + } private void startAutomaticRefresh() { stopAutomaticRefresh(); diff --git a/bundles/org.openhab.binding.sensorcommunity/src/main/java/org/openhab/binding/sensorcommunity/internal/handler/BaseSensorHandler.java b/bundles/org.openhab.binding.sensorcommunity/src/main/java/org/openhab/binding/sensorcommunity/internal/handler/BaseSensorHandler.java index f4a5a0a500561..3941061e25322 100644 --- a/bundles/org.openhab.binding.sensorcommunity/src/main/java/org/openhab/binding/sensorcommunity/internal/handler/BaseSensorHandler.java +++ b/bundles/org.openhab.binding.sensorcommunity/src/main/java/org/openhab/binding/sensorcommunity/internal/handler/BaseSensorHandler.java @@ -60,7 +60,7 @@ public enum ConfigStatus { SENSOR_IS_NULL, SENSOR_ID_NEGATIVE, UNKNOWN - }; + } public enum UpdateStatus { OK, diff --git a/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1ApiJsonDTO.java b/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1ApiJsonDTO.java index b296adcccc942..ec99dda4b7e48 100644 --- a/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1ApiJsonDTO.java +++ b/bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/api1/Shelly1ApiJsonDTO.java @@ -954,7 +954,7 @@ public static class ShellySensorHum { public static class ShellySensorBat { public Double value; // estimated remaining battery capacity in % public Double voltage; // battery voltage - }; + } // Door/Window sensor public static class ShellySensorState { diff --git a/bundles/org.openhab.binding.smsmodem/src/3rdparty/java/org/smslib/message/AbstractMessage.java b/bundles/org.openhab.binding.smsmodem/src/3rdparty/java/org/smslib/message/AbstractMessage.java index eaad8128b3eb2..6cdfd4f6ac801 100644 --- a/bundles/org.openhab.binding.smsmodem/src/3rdparty/java/org/smslib/message/AbstractMessage.java +++ b/bundles/org.openhab.binding.smsmodem/src/3rdparty/java/org/smslib/message/AbstractMessage.java @@ -21,7 +21,7 @@ public enum Encoding { Enc7, Enc8, EncUcs2, - EncCustom; + EncCustom } public enum DcsClass { diff --git a/bundles/org.openhab.binding.solax/src/main/java/org/openhab/binding/solax/internal/model/InverterData.java b/bundles/org.openhab.binding.solax/src/main/java/org/openhab/binding/solax/internal/model/InverterData.java index cf20302892b64..04c60aed7b4a0 100644 --- a/bundles/org.openhab.binding.solax/src/main/java/org/openhab/binding/solax/internal/model/InverterData.java +++ b/bundles/org.openhab.binding.solax/src/main/java/org/openhab/binding/solax/internal/model/InverterData.java @@ -68,11 +68,11 @@ default double getPVTotalCurrent() { default double getBatteryVoltage() { return Short.MIN_VALUE; - }; + } default double getBatteryCurrent() { return Short.MIN_VALUE; - }; + } default short getBatteryPower() { return Short.MIN_VALUE; diff --git a/bundles/org.openhab.binding.solax/src/main/java/org/openhab/binding/solax/internal/util/GsonSupplier.java b/bundles/org.openhab.binding.solax/src/main/java/org/openhab/binding/solax/internal/util/GsonSupplier.java index 62b5ee77fd58a..a88f1e4518cf8 100644 --- a/bundles/org.openhab.binding.solax/src/main/java/org/openhab/binding/solax/internal/util/GsonSupplier.java +++ b/bundles/org.openhab.binding.solax/src/main/java/org/openhab/binding/solax/internal/util/GsonSupplier.java @@ -26,7 +26,7 @@ public class GsonSupplier { private static final Gson GSON = new Gson(); private GsonSupplier() { - }; + } public static Gson getInstance() { return GSON; diff --git a/bundles/org.openhab.binding.squeezebox/src/main/java/org/openhab/binding/squeezebox/internal/handler/SqueezeBoxServerHandler.java b/bundles/org.openhab.binding.squeezebox/src/main/java/org/openhab/binding/squeezebox/internal/handler/SqueezeBoxServerHandler.java index 743cc76dd5a1c..8459469490402 100644 --- a/bundles/org.openhab.binding.squeezebox/src/main/java/org/openhab/binding/squeezebox/internal/handler/SqueezeBoxServerHandler.java +++ b/bundles/org.openhab.binding.squeezebox/src/main/java/org/openhab/binding/squeezebox/internal/handler/SqueezeBoxServerHandler.java @@ -531,7 +531,7 @@ public KeyValue(String key, String value) { this.key = key; this.value = value; } - }; + } private List decodeKeyValueResponse(String[] response) { final List keysAndValues = new ArrayList<>(); diff --git a/bundles/org.openhab.binding.unifi/src/main/java/org/openhab/binding/unifi/internal/api/cache/UniFiCache.java b/bundles/org.openhab.binding.unifi/src/main/java/org/openhab/binding/unifi/internal/api/cache/UniFiCache.java index 54b577209943f..5ee791fa350a7 100644 --- a/bundles/org.openhab.binding.unifi/src/main/java/org/openhab/binding/unifi/internal/api/cache/UniFiCache.java +++ b/bundles/org.openhab.binding.unifi/src/main/java/org/openhab/binding/unifi/internal/api/cache/UniFiCache.java @@ -46,7 +46,7 @@ public enum Prefix { ID, IP, MAC, - NAME; + NAME } private static final String SEPARATOR = ":"; diff --git a/bundles/org.openhab.binding.upnpcontrol/src/main/java/org/openhab/binding/upnpcontrol/internal/handler/UpnpHandler.java b/bundles/org.openhab.binding.upnpcontrol/src/main/java/org/openhab/binding/upnpcontrol/internal/handler/UpnpHandler.java index 12b6bcf525009..f3f06b028b085 100644 --- a/bundles/org.openhab.binding.upnpcontrol/src/main/java/org/openhab/binding/upnpcontrol/internal/handler/UpnpHandler.java +++ b/bundles/org.openhab.binding.upnpcontrol/src/main/java/org/openhab/binding/upnpcontrol/internal/handler/UpnpHandler.java @@ -235,7 +235,7 @@ protected void updateStatus(ThingStatus status) { */ public void updateDeviceConfig(RemoteDevice device) { this.device = device; - }; + } protected void updateStateDescription(ChannelUID channelUID, List stateOptionList) { StateDescription stateDescription = StateDescriptionFragmentBuilder.create().withReadOnly(false) diff --git a/bundles/org.openhab.binding.velux/src/main/java/org/openhab/binding/velux/internal/bridge/slip/FunctionalParameters.java b/bundles/org.openhab.binding.velux/src/main/java/org/openhab/binding/velux/internal/bridge/slip/FunctionalParameters.java index 777984ae570c8..07fd38ed5a467 100644 --- a/bundles/org.openhab.binding.velux/src/main/java/org/openhab/binding/velux/internal/bridge/slip/FunctionalParameters.java +++ b/bundles/org.openhab.binding.velux/src/main/java/org/openhab/binding/velux/internal/bridge/slip/FunctionalParameters.java @@ -203,5 +203,5 @@ public boolean equals(@Nullable Object obj) { @Override public int hashCode() { return Arrays.hashCode(values); - }; + } } diff --git a/bundles/org.openhab.binding.velux/src/main/java/org/openhab/binding/velux/internal/handler/VeluxBridgeHandler.java b/bundles/org.openhab.binding.velux/src/main/java/org/openhab/binding/velux/internal/handler/VeluxBridgeHandler.java index 9df228bcec52e..a340e4cef9daf 100644 --- a/bundles/org.openhab.binding.velux/src/main/java/org/openhab/binding/velux/internal/handler/VeluxBridgeHandler.java +++ b/bundles/org.openhab.binding.velux/src/main/java/org/openhab/binding/velux/internal/handler/VeluxBridgeHandler.java @@ -242,7 +242,7 @@ public ThingTypeUID thingTypeUIDOf(ChannelUID channelUID) { @Override public VeluxBridgeConfiguration veluxBridgeConfiguration() { return veluxBridgeConfiguration; - }; + } /** * Information retrieved by {@link VeluxBridgeActuators#getProducts} @@ -250,7 +250,7 @@ public VeluxBridgeConfiguration veluxBridgeConfiguration() { @Override public VeluxExistingProducts existingProducts() { return bridgeParameters.actuators.getChannel().existingProducts; - }; + } /** * Information retrieved by {@link VeluxBridgeScenes#getScenes} diff --git a/bundles/org.openhab.binding.verisure/src/main/java/org/openhab/binding/verisure/internal/VerisureSession.java b/bundles/org.openhab.binding.verisure/src/main/java/org/openhab/binding/verisure/internal/VerisureSession.java index 34655e9f1cf19..a93fcc8a1deaa 100644 --- a/bundles/org.openhab.binding.verisure/src/main/java/org/openhab/binding/verisure/internal/VerisureSession.java +++ b/bundles/org.openhab.binding.verisure/src/main/java/org/openhab/binding/verisure/internal/VerisureSession.java @@ -186,7 +186,7 @@ public boolean registerDeviceStatusListener(DeviceStatusListener vth, String deviceId) { verisureHandlers.put(deviceId, vth); - }; + } public void removeVerisureThingHandler(String deviceId) { verisureHandlers.remove(deviceId); diff --git a/bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/DummyHomekitAccessory.java b/bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/DummyHomekitAccessory.java index 7a7752a6f613f..d62d4949b1f1a 100644 --- a/bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/DummyHomekitAccessory.java +++ b/bundles/org.openhab.io.homekit/src/main/java/org/openhab/io/homekit/internal/accessories/DummyHomekitAccessory.java @@ -110,7 +110,7 @@ public List getLinkedServices() { public void addLinkedService(Service service) { linkedServices.add(service); } - }; + } int id; String item; diff --git a/bundles/org.openhab.persistence.inmemory/src/main/java/org/openhab/persistence/inmemory/internal/InMemoryPersistenceService.java b/bundles/org.openhab.persistence.inmemory/src/main/java/org/openhab/persistence/inmemory/internal/InMemoryPersistenceService.java index 3b4ae0bac7322..14af3f72f7171 100644 --- a/bundles/org.openhab.persistence.inmemory/src/main/java/org/openhab/persistence/inmemory/internal/InMemoryPersistenceService.java +++ b/bundles/org.openhab.persistence.inmemory/src/main/java/org/openhab/persistence/inmemory/internal/InMemoryPersistenceService.java @@ -314,8 +314,8 @@ private boolean applies(PersistEntry entry, FilterCriteria filter) { } private record PersistEntry(ZonedDateTime timestamp, State state) { - }; + } private record PersistItem(TreeSet database, Lock lock) { - }; + } }