diff --git a/bundles/org.openhab.binding.adorne/src/main/java/org/openhab/binding/adorne/internal/hub/AdorneHubChangeNotify.java b/bundles/org.openhab.binding.adorne/src/main/java/org/openhab/binding/adorne/internal/hub/AdorneHubChangeNotify.java index e4ff8da46..4699e2682 100644 --- a/bundles/org.openhab.binding.adorne/src/main/java/org/openhab/binding/adorne/internal/hub/AdorneHubChangeNotify.java +++ b/bundles/org.openhab.binding.adorne/src/main/java/org/openhab/binding/adorne/internal/hub/AdorneHubChangeNotify.java @@ -29,12 +29,12 @@ public interface AdorneHubChangeNotify { * @param onOff new on/off state * @param brightness new brightness */ - public void stateChangeNotify(int zoneId, boolean onOff, int brightness); + void stateChangeNotify(int zoneId, boolean onOff, int brightness); /** * Notify listener about hub connection change * * @param connected new connection state */ - public void connectionChangeNotify(boolean connected); + void connectionChangeNotify(boolean connected); } diff --git a/bundles/org.openhab.binding.ahawastecollection/src/main/java/org/openhab/binding/ahawastecollection/internal/AhaCollectionSchedule.java b/bundles/org.openhab.binding.ahawastecollection/src/main/java/org/openhab/binding/ahawastecollection/internal/AhaCollectionSchedule.java index 80ea309df..52d971227 100644 --- a/bundles/org.openhab.binding.ahawastecollection/src/main/java/org/openhab/binding/ahawastecollection/internal/AhaCollectionSchedule.java +++ b/bundles/org.openhab.binding.ahawastecollection/src/main/java/org/openhab/binding/ahawastecollection/internal/AhaCollectionSchedule.java @@ -29,5 +29,5 @@ public interface AhaCollectionSchedule { /** * Returns the next collection dates per {@link WasteType}. */ - public Map getCollectionDates() throws IOException; + Map getCollectionDates() throws IOException; } diff --git a/bundles/org.openhab.binding.ahawastecollection/src/main/java/org/openhab/binding/ahawastecollection/internal/AhaCollectionScheduleFactory.java b/bundles/org.openhab.binding.ahawastecollection/src/main/java/org/openhab/binding/ahawastecollection/internal/AhaCollectionScheduleFactory.java index 1ab34e91f..124942063 100644 --- a/bundles/org.openhab.binding.ahawastecollection/src/main/java/org/openhab/binding/ahawastecollection/internal/AhaCollectionScheduleFactory.java +++ b/bundles/org.openhab.binding.ahawastecollection/src/main/java/org/openhab/binding/ahawastecollection/internal/AhaCollectionScheduleFactory.java @@ -25,6 +25,6 @@ public interface AhaCollectionScheduleFactory { /** * Creates a new {@link AhaCollectionSchedule} for the given location. */ - public AhaCollectionSchedule create(final String commune, final String street, final String houseNumber, + AhaCollectionSchedule create(final String commune, final String street, final String houseNumber, final String houseNumberAddon, final String collectionPlace); } diff --git a/bundles/org.openhab.binding.amazondashbutton/src/main/java/org/openhab/binding/amazondashbutton/internal/capturing/PacketCapturingHandler.java b/bundles/org.openhab.binding.amazondashbutton/src/main/java/org/openhab/binding/amazondashbutton/internal/capturing/PacketCapturingHandler.java index c3cfeafdb..9c249eb7e 100644 --- a/bundles/org.openhab.binding.amazondashbutton/src/main/java/org/openhab/binding/amazondashbutton/internal/capturing/PacketCapturingHandler.java +++ b/bundles/org.openhab.binding.amazondashbutton/src/main/java/org/openhab/binding/amazondashbutton/internal/capturing/PacketCapturingHandler.java @@ -26,5 +26,5 @@ public interface PacketCapturingHandler { * * @param macAddress The mac address which sent the packet */ - public void packetCaptured(MacAddress sourceMacAddress); + void packetCaptured(MacAddress sourceMacAddress); } diff --git a/bundles/org.openhab.binding.amazondashbutton/src/main/java/org/openhab/binding/amazondashbutton/internal/pcap/PcapNetworkInterfaceListener.java b/bundles/org.openhab.binding.amazondashbutton/src/main/java/org/openhab/binding/amazondashbutton/internal/pcap/PcapNetworkInterfaceListener.java index a0e7a8a18..e9b5e80d6 100644 --- a/bundles/org.openhab.binding.amazondashbutton/src/main/java/org/openhab/binding/amazondashbutton/internal/pcap/PcapNetworkInterfaceListener.java +++ b/bundles/org.openhab.binding.amazondashbutton/src/main/java/org/openhab/binding/amazondashbutton/internal/pcap/PcapNetworkInterfaceListener.java @@ -30,12 +30,12 @@ public interface PcapNetworkInterfaceListener { * * @param newNetworkInterface The added networkInterface */ - public void onPcapNetworkInterfaceAdded(PcapNetworkInterfaceWrapper newNetworkInterface); + void onPcapNetworkInterfaceAdded(PcapNetworkInterfaceWrapper newNetworkInterface); /** * This method is called whenever a {@link PcapNetworkInterfaceWrapper} is removed. * * @param removedNetworkInterface The removed networkInterface */ - public void onPcapNetworkInterfaceRemoved(PcapNetworkInterfaceWrapper removedNetworkInterface); + void onPcapNetworkInterfaceRemoved(PcapNetworkInterfaceWrapper removedNetworkInterface); } diff --git a/bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/IWebSocketCommandHandler.java b/bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/IWebSocketCommandHandler.java index 56c16a5dc..e5fc32400 100644 --- a/bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/IWebSocketCommandHandler.java +++ b/bundles/org.openhab.binding.amazonechocontrol/src/main/java/org/openhab/binding/amazonechocontrol/internal/IWebSocketCommandHandler.java @@ -23,5 +23,5 @@ import org.openhab.binding.amazonechocontrol.internal.jsons.JsonPushCommand; @NonNullByDefault public interface IWebSocketCommandHandler { - public void webSocketCommandReceived(JsonPushCommand pushCommand); + void webSocketCommandReceived(JsonPushCommand pushCommand); } diff --git a/bundles/org.openhab.binding.ambientweather/src/main/java/org/openhab/binding/ambientweather/internal/processor/ProcessorInterface.java b/bundles/org.openhab.binding.ambientweather/src/main/java/org/openhab/binding/ambientweather/internal/processor/ProcessorInterface.java index fa185db57..8a2a3cd35 100644 --- a/bundles/org.openhab.binding.ambientweather/src/main/java/org/openhab/binding/ambientweather/internal/processor/ProcessorInterface.java +++ b/bundles/org.openhab.binding.ambientweather/src/main/java/org/openhab/binding/ambientweather/internal/processor/ProcessorInterface.java @@ -25,20 +25,20 @@ public interface ProcessorInterface { /* * Set the channel group Id for the station */ - public void setChannelGroupId(); + void setChannelGroupId(); /* * Set the number of remote sensors supported by the station */ - public void setNumberOfSensors(); + void setNumberOfSensors(); /* * Updates the info channels (i.e. name and location) for a station */ - public void processInfoUpdate(AmbientWeatherStationHandler handler, String station, String name, String location); + void processInfoUpdate(AmbientWeatherStationHandler handler, String station, String name, String location); /* * Updates the weather data channels for a station */ - public void processWeatherData(AmbientWeatherStationHandler handler, String station, String jsonData); + void processWeatherData(AmbientWeatherStationHandler handler, String station, String jsonData); } diff --git a/bundles/org.openhab.binding.amplipi/src/main/java/org/openhab/binding/amplipi/internal/AmpliPiStatusChangeListener.java b/bundles/org.openhab.binding.amplipi/src/main/java/org/openhab/binding/amplipi/internal/AmpliPiStatusChangeListener.java index 997035f40..42173689b 100644 --- a/bundles/org.openhab.binding.amplipi/src/main/java/org/openhab/binding/amplipi/internal/AmpliPiStatusChangeListener.java +++ b/bundles/org.openhab.binding.amplipi/src/main/java/org/openhab/binding/amplipi/internal/AmpliPiStatusChangeListener.java @@ -29,5 +29,5 @@ public interface AmpliPiStatusChangeListener { * * @param status The current status of the AmpliPi */ - public void receive(Status status); + void receive(Status status); } diff --git a/bundles/org.openhab.binding.astro/src/main/java/org/openhab/binding/astro/internal/job/Job.java b/bundles/org.openhab.binding.astro/src/main/java/org/openhab/binding/astro/internal/job/Job.java index 29f7772bc..19d47153a 100644 --- a/bundles/org.openhab.binding.astro/src/main/java/org/openhab/binding/astro/internal/job/Job.java +++ b/bundles/org.openhab.binding.astro/src/main/java/org/openhab/binding/astro/internal/job/Job.java @@ -40,7 +40,7 @@ import org.slf4j.LoggerFactory; public interface Job extends SchedulerRunnable, Runnable { /** Logger Instance */ - public final Logger LOGGER = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); + final Logger LOGGER = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass()); /** * Schedules the provided {@link Job} instance @@ -50,7 +50,7 @@ public interface Job extends SchedulerRunnable, Runnable { * @param job the {@link Job} instance to schedule * @param eventAt the {@link Calendar} instance denoting scheduled instant */ - public static void schedule(String thingUID, AstroThingHandler astroHandler, Job job, Calendar eventAt) { + static void schedule(String thingUID, AstroThingHandler astroHandler, Job job, Calendar eventAt) { try { Calendar today = Calendar.getInstance(); if (isSameDay(eventAt, today) && isTimeGreaterEquals(eventAt, today)) { @@ -70,7 +70,7 @@ public interface Job extends SchedulerRunnable, Runnable { * @param event the event ID * @param channelId the channel ID */ - public static void scheduleEvent(String thingUID, AstroThingHandler astroHandler, Calendar eventAt, String event, + static void scheduleEvent(String thingUID, AstroThingHandler astroHandler, Calendar eventAt, String event, String channelId, boolean configAlreadyApplied) { scheduleEvent(thingUID, astroHandler, eventAt, singletonList(event), channelId, configAlreadyApplied); } @@ -84,8 +84,8 @@ public interface Job extends SchedulerRunnable, Runnable { * @param events the event IDs to schedule * @param channelId the channel ID */ - public static void scheduleEvent(String thingUID, AstroThingHandler astroHandler, Calendar eventAt, - List events, String channelId, boolean configAlreadyApplied) { + static void scheduleEvent(String thingUID, AstroThingHandler astroHandler, Calendar eventAt, List events, + String channelId, boolean configAlreadyApplied) { if (events.isEmpty()) { return; } @@ -113,7 +113,7 @@ public interface Job extends SchedulerRunnable, Runnable { * @param range the {@link Range} instance * @param channelId the channel ID */ - public static void scheduleRange(String thingUID, AstroThingHandler astroHandler, Range range, String channelId) { + static void scheduleRange(String thingUID, AstroThingHandler astroHandler, Range range, String channelId) { final Channel channel = astroHandler.getThing().getChannel(channelId); if (channel == null) { LOGGER.warn("Cannot find channel '{}' for thing '{}'.", channelId, astroHandler.getThing().getUID()); @@ -134,7 +134,7 @@ public interface Job extends SchedulerRunnable, Runnable { scheduleEvent(thingUID, astroHandler, end, EVENT_END, channelId, true); } - public static Range adjustRangeToConfig(Range range, AstroChannelConfig config) { + static Range adjustRangeToConfig(Range range, AstroChannelConfig config) { Calendar start = range.getStart(); Calendar end = range.getEnd(); @@ -161,7 +161,7 @@ public interface Job extends SchedulerRunnable, Runnable { * @param astroHandler the {@link AstroThingHandler} instance * @param eventAt the {@link Calendar} instance denoting scheduled instant */ - public static void schedulePublishPlanet(String thingUID, AstroThingHandler astroHandler, Calendar eventAt) { + static void schedulePublishPlanet(String thingUID, AstroThingHandler astroHandler, Calendar eventAt) { Job publishJob = new PublishPlanetJob(thingUID); schedule(thingUID, astroHandler, publishJob, eventAt); } @@ -174,7 +174,7 @@ public interface Job extends SchedulerRunnable, Runnable { * @param sunPhaseName {@link SunPhaseName} instance * @param eventAt the {@link Calendar} instance denoting scheduled instant */ - public static void scheduleSunPhase(String thingUID, AstroThingHandler astroHandler, SunPhaseName sunPhaseName, + static void scheduleSunPhase(String thingUID, AstroThingHandler astroHandler, SunPhaseName sunPhaseName, Calendar eventAt) { Job sunPhaseJob = new SunPhaseJob(thingUID, sunPhaseName); schedule(thingUID, astroHandler, sunPhaseJob, eventAt); @@ -183,5 +183,5 @@ public interface Job extends SchedulerRunnable, Runnable { /** * Returns the thing UID that is associated with this {@link Job} (cannot be {@code null}) */ - public String getThingUID(); + String getThingUID(); } diff --git a/bundles/org.openhab.binding.atlona/src/main/java/org/openhab/binding/atlona/internal/net/SocketSessionListener.java b/bundles/org.openhab.binding.atlona/src/main/java/org/openhab/binding/atlona/internal/net/SocketSessionListener.java index 727f87e86..5177696fa 100644 --- a/bundles/org.openhab.binding.atlona/src/main/java/org/openhab/binding/atlona/internal/net/SocketSessionListener.java +++ b/bundles/org.openhab.binding.atlona/src/main/java/org/openhab/binding/atlona/internal/net/SocketSessionListener.java @@ -27,12 +27,12 @@ public interface SocketSessionListener { * * @param response a non-null, possibly empty response */ - public void responseReceived(String response); + void responseReceived(String response); /** * Called when a command finished with an exception or a general exception occurred while reading * * @param e a non-null exception */ - public void responseException(Exception e); + void responseException(Exception e); } diff --git a/bundles/org.openhab.binding.avmfritz/src/main/java/org/openhab/binding/avmfritz/internal/dto/BatteryModel.java b/bundles/org.openhab.binding.avmfritz/src/main/java/org/openhab/binding/avmfritz/internal/dto/BatteryModel.java index 0491e1b88..9f948c704 100644 --- a/bundles/org.openhab.binding.avmfritz/src/main/java/org/openhab/binding/avmfritz/internal/dto/BatteryModel.java +++ b/bundles/org.openhab.binding.avmfritz/src/main/java/org/openhab/binding/avmfritz/internal/dto/BatteryModel.java @@ -21,8 +21,8 @@ import java.math.BigDecimal; */ public interface BatteryModel { - public static final BigDecimal BATTERY_OFF = BigDecimal.ZERO; - public static final BigDecimal BATTERY_ON = BigDecimal.ONE; + static final BigDecimal BATTERY_OFF = BigDecimal.ZERO; + static final BigDecimal BATTERY_ON = BigDecimal.ONE; BigDecimal getBattery(); diff --git a/bundles/org.openhab.binding.avmfritz/src/main/java/org/openhab/binding/avmfritz/internal/hardware/callbacks/FritzAhaCallback.java b/bundles/org.openhab.binding.avmfritz/src/main/java/org/openhab/binding/avmfritz/internal/hardware/callbacks/FritzAhaCallback.java index bf27d789a..c8a69c890 100644 --- a/bundles/org.openhab.binding.avmfritz/src/main/java/org/openhab/binding/avmfritz/internal/hardware/callbacks/FritzAhaCallback.java +++ b/bundles/org.openhab.binding.avmfritz/src/main/java/org/openhab/binding/avmfritz/internal/hardware/callbacks/FritzAhaCallback.java @@ -31,12 +31,12 @@ public interface FritzAhaCallback { * * @return URI path as String */ - public String getPath(); + String getPath(); /** * Get the query String * * @return Query string as String */ - public String getArgs(); + String getArgs(); } diff --git a/bundles/org.openhab.binding.benqprojector/src/main/java/org/openhab/binding/benqprojector/internal/connector/BenqProjectorConnector.java b/bundles/org.openhab.binding.benqprojector/src/main/java/org/openhab/binding/benqprojector/internal/connector/BenqProjectorConnector.java index 44049eec9..bd13689c6 100644 --- a/bundles/org.openhab.binding.benqprojector/src/main/java/org/openhab/binding/benqprojector/internal/connector/BenqProjectorConnector.java +++ b/bundles/org.openhab.binding.benqprojector/src/main/java/org/openhab/binding/benqprojector/internal/connector/BenqProjectorConnector.java @@ -28,11 +28,11 @@ import org.openhab.binding.benqprojector.internal.BenqProjectorException; */ @NonNullByDefault public interface BenqProjectorConnector { - public static final int TIMEOUT_MS = 5 * 1000; + static final int TIMEOUT_MS = 5 * 1000; - public static final String START = "\r*"; - public static final String END = "#\r"; - public static final String BLANK = ""; + static final String START = "\r*"; + static final String END = "#\r"; + static final String BLANK = ""; /** * Procedure for connecting to projector. diff --git a/bundles/org.openhab.binding.bluetooth.am43/src/main/java/org/openhab/binding/bluetooth/am43/internal/command/ResponseListener.java b/bundles/org.openhab.binding.bluetooth.am43/src/main/java/org/openhab/binding/bluetooth/am43/internal/command/ResponseListener.java index 931c48bbd..89cf6e440 100644 --- a/bundles/org.openhab.binding.bluetooth.am43/src/main/java/org/openhab/binding/bluetooth/am43/internal/command/ResponseListener.java +++ b/bundles/org.openhab.binding.bluetooth.am43/src/main/java/org/openhab/binding/bluetooth/am43/internal/command/ResponseListener.java @@ -22,13 +22,13 @@ import org.eclipse.jdt.annotation.NonNullByDefault; @NonNullByDefault public interface ResponseListener { - public void receivedResponse(GetBatteryLevelCommand command); + void receivedResponse(GetBatteryLevelCommand command); - public void receivedResponse(GetAllCommand command); + void receivedResponse(GetAllCommand command); - public void receivedResponse(GetLightLevelCommand command); + void receivedResponse(GetLightLevelCommand command); - public void receivedResponse(GetPositionCommand command); + void receivedResponse(GetPositionCommand command); - public void receivedResponse(GetSpeedCommand command); + void receivedResponse(GetSpeedCommand command); } diff --git a/bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/events/BlueZEventListener.java b/bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/events/BlueZEventListener.java index f0a238f37..650a4ee8c 100644 --- a/bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/events/BlueZEventListener.java +++ b/bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/events/BlueZEventListener.java @@ -23,45 +23,45 @@ import org.eclipse.jdt.annotation.NonNullByDefault; @NonNullByDefault public interface BlueZEventListener { - public void onDBusBlueZEvent(BlueZEvent event); + void onDBusBlueZEvent(BlueZEvent event); - public default void onDiscoveringChanged(AdapterDiscoveringChangedEvent event) { + default void onDiscoveringChanged(AdapterDiscoveringChangedEvent event) { onDBusBlueZEvent(event); } - public default void onPoweredChange(AdapterPoweredChangedEvent event) { + default void onPoweredChange(AdapterPoweredChangedEvent event) { onDBusBlueZEvent(event); } - public default void onRssiUpdate(RssiEvent event) { + default void onRssiUpdate(RssiEvent event) { onDBusBlueZEvent(event); } - public default void onTxPowerUpdate(TXPowerEvent event) { + default void onTxPowerUpdate(TXPowerEvent event) { onDBusBlueZEvent(event); } - public default void onCharacteristicNotify(CharacteristicUpdateEvent event) { + default void onCharacteristicNotify(CharacteristicUpdateEvent event) { onDBusBlueZEvent(event); } - public default void onManufacturerDataUpdate(ManufacturerDataEvent event) { + default void onManufacturerDataUpdate(ManufacturerDataEvent event) { onDBusBlueZEvent(event); } - public default void onServiceDataUpdate(ServiceDataEvent event) { + default void onServiceDataUpdate(ServiceDataEvent event) { onDBusBlueZEvent(event); } - public default void onConnectedStatusUpdate(ConnectedEvent event) { + default void onConnectedStatusUpdate(ConnectedEvent event) { onDBusBlueZEvent(event); } - public default void onNameUpdate(NameEvent event) { + default void onNameUpdate(NameEvent event) { onDBusBlueZEvent(event); } - public default void onServicesResolved(ServicesResolvedEvent event) { + default void onServicesResolved(ServicesResolvedEvent event) { onDBusBlueZEvent(event); } } diff --git a/bundles/org.openhab.binding.bluetooth.daikinmadoka/src/main/java/org/openhab/binding/bluetooth/daikinmadoka/internal/model/commands/ResponseListener.java b/bundles/org.openhab.binding.bluetooth.daikinmadoka/src/main/java/org/openhab/binding/bluetooth/daikinmadoka/internal/model/commands/ResponseListener.java index 451a3ec11..416315f17 100644 --- a/bundles/org.openhab.binding.bluetooth.daikinmadoka/src/main/java/org/openhab/binding/bluetooth/daikinmadoka/internal/model/commands/ResponseListener.java +++ b/bundles/org.openhab.binding.bluetooth.daikinmadoka/src/main/java/org/openhab/binding/bluetooth/daikinmadoka/internal/model/commands/ResponseListener.java @@ -23,33 +23,33 @@ import org.eclipse.jdt.annotation.NonNullByDefault; @NonNullByDefault public interface ResponseListener { - public void receivedResponse(byte[] bytes); + void receivedResponse(byte[] bytes); - public void receivedResponse(GetVersionCommand command); + void receivedResponse(GetVersionCommand command); - public void receivedResponse(GetFanspeedCommand command); + void receivedResponse(GetFanspeedCommand command); - public void receivedResponse(GetOperationmodeCommand command); + void receivedResponse(GetOperationmodeCommand command); - public void receivedResponse(GetPowerstateCommand command); + void receivedResponse(GetPowerstateCommand command); - public void receivedResponse(GetSetpointCommand command); + void receivedResponse(GetSetpointCommand command); - public void receivedResponse(GetIndoorOutoorTemperatures command); + void receivedResponse(GetIndoorOutoorTemperatures command); - public void receivedResponse(SetPowerstateCommand command); + void receivedResponse(SetPowerstateCommand command); - public void receivedResponse(SetSetpointCommand command); + void receivedResponse(SetSetpointCommand command); - public void receivedResponse(SetOperationmodeCommand command); + void receivedResponse(SetOperationmodeCommand command); - public void receivedResponse(SetFanspeedCommand command); + void receivedResponse(SetFanspeedCommand command); - public void receivedResponse(GetOperationHoursCommand command); + void receivedResponse(GetOperationHoursCommand command); - public void receivedResponse(GetEyeBrightnessCommand command); + void receivedResponse(GetEyeBrightnessCommand command); - public void receivedResponse(SetEyeBrightnessCommand command); + void receivedResponse(SetEyeBrightnessCommand command); - public void receivedResponse(GetCleanFilterIndicatorCommand command); + void receivedResponse(GetCleanFilterIndicatorCommand command); } diff --git a/bundles/org.openhab.binding.bluetooth.govee/src/main/java/org/openhab/binding/bluetooth/gattserial/GattMessage.java b/bundles/org.openhab.binding.bluetooth.govee/src/main/java/org/openhab/binding/bluetooth/gattserial/GattMessage.java index 4018f3c65..6d735a020 100644 --- a/bundles/org.openhab.binding.bluetooth.govee/src/main/java/org/openhab/binding/bluetooth/gattserial/GattMessage.java +++ b/bundles/org.openhab.binding.bluetooth.govee/src/main/java/org/openhab/binding/bluetooth/gattserial/GattMessage.java @@ -21,5 +21,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault; @NonNullByDefault public interface GattMessage { - public byte[] getPayload(); + byte[] getPayload(); } diff --git a/bundles/org.openhab.binding.bluetooth.govee/src/main/java/org/openhab/binding/bluetooth/gattserial/MessageHandler.java b/bundles/org.openhab.binding.bluetooth.govee/src/main/java/org/openhab/binding/bluetooth/gattserial/MessageHandler.java index 9a840bda0..9d94ad9eb 100644 --- a/bundles/org.openhab.binding.bluetooth.govee/src/main/java/org/openhab/binding/bluetooth/gattserial/MessageHandler.java +++ b/bundles/org.openhab.binding.bluetooth.govee/src/main/java/org/openhab/binding/bluetooth/gattserial/MessageHandler.java @@ -26,12 +26,12 @@ public interface MessageHandler { * @param payload * @return true if this handler should be removed from the handler list */ - public boolean handleReceivedMessage(R message); + boolean handleReceivedMessage(R message); /** * * @param payload * @return true if this handler should be removed from the handler list */ - public boolean handleFailedMessage(T message, Throwable th); + boolean handleFailedMessage(T message, Throwable th); } diff --git a/bundles/org.openhab.binding.bluetooth.govee/src/main/java/org/openhab/binding/bluetooth/gattserial/MessageServicer.java b/bundles/org.openhab.binding.bluetooth.govee/src/main/java/org/openhab/binding/bluetooth/gattserial/MessageServicer.java index e5f7a3c39..c9b0fcfe0 100644 --- a/bundles/org.openhab.binding.bluetooth.govee/src/main/java/org/openhab/binding/bluetooth/gattserial/MessageServicer.java +++ b/bundles/org.openhab.binding.bluetooth.govee/src/main/java/org/openhab/binding/bluetooth/gattserial/MessageServicer.java @@ -24,5 +24,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault; public interface MessageServicer extends MessageHandler, MessageSupplier { - public long getTimeout(TimeUnit unit); + long getTimeout(TimeUnit unit); } diff --git a/bundles/org.openhab.binding.bluetooth.govee/src/main/java/org/openhab/binding/bluetooth/gattserial/MessageSupplier.java b/bundles/org.openhab.binding.bluetooth.govee/src/main/java/org/openhab/binding/bluetooth/gattserial/MessageSupplier.java index 753313561..450248d2f 100644 --- a/bundles/org.openhab.binding.bluetooth.govee/src/main/java/org/openhab/binding/bluetooth/gattserial/MessageSupplier.java +++ b/bundles/org.openhab.binding.bluetooth.govee/src/main/java/org/openhab/binding/bluetooth/gattserial/MessageSupplier.java @@ -21,5 +21,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault; @NonNullByDefault public interface MessageSupplier { - public M createMessage(); + M createMessage(); } diff --git a/bundles/org.openhab.binding.bluetooth/src/main/java/org/openhab/binding/bluetooth/discovery/BluetoothDiscoveryParticipant.java b/bundles/org.openhab.binding.bluetooth/src/main/java/org/openhab/binding/bluetooth/discovery/BluetoothDiscoveryParticipant.java index 36a4bee7a..2990450a6 100644 --- a/bundles/org.openhab.binding.bluetooth/src/main/java/org/openhab/binding/bluetooth/discovery/BluetoothDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.bluetooth/src/main/java/org/openhab/binding/bluetooth/discovery/BluetoothDiscoveryParticipant.java @@ -37,7 +37,7 @@ public interface BluetoothDiscoveryParticipant { * * @return a set of thing type UIDs for which results can be created */ - public Set getSupportedThingTypeUIDs(); + Set getSupportedThingTypeUIDs(); /** * Creates a discovery result for a Bluetooth device @@ -46,7 +46,8 @@ public interface BluetoothDiscoveryParticipant { * @return the according discovery result or null, if device is not * supported by this participant */ - public @Nullable DiscoveryResult createResult(BluetoothDiscoveryDevice device); + @Nullable + DiscoveryResult createResult(BluetoothDiscoveryDevice device); /** * Returns the thing UID for a Bluetooth device @@ -54,7 +55,8 @@ public interface BluetoothDiscoveryParticipant { * @param device the Bluetooth device * @return a thing UID or null, if the device is not supported by this participant */ - public @Nullable ThingUID getThingUID(BluetoothDiscoveryDevice device); + @Nullable + ThingUID getThingUID(BluetoothDiscoveryDevice device); /** * Returns true if this participant requires the device to be connected before it can produce a @@ -70,7 +72,7 @@ public interface BluetoothDiscoveryParticipant { * @param device the Bluetooth device * @return true if a connection is required before calling {@link createResult(BluetoothDevice)} */ - public default boolean requiresConnection(BluetoothDiscoveryDevice device) { + default boolean requiresConnection(BluetoothDiscoveryDevice device) { return false; } @@ -87,7 +89,7 @@ public interface BluetoothDiscoveryParticipant { * @param result the DiscoveryResult to post-process * @param publisher the consumer to publish additional results to. */ - public default void publishAdditionalResults(DiscoveryResult result, + default void publishAdditionalResults(DiscoveryResult result, BiConsumer publisher) { // do nothing by default } @@ -98,7 +100,7 @@ public interface BluetoothDiscoveryParticipant { * * @return the order of this participant, default 0 */ - public default int order() { + default int order() { return 0; } } diff --git a/bundles/org.openhab.binding.bosesoundtouch/src/main/java/org/openhab/binding/bosesoundtouch/internal/AvailableSources.java b/bundles/org.openhab.binding.bosesoundtouch/src/main/java/org/openhab/binding/bosesoundtouch/internal/AvailableSources.java index b0b70d233..7995ea053 100644 --- a/bundles/org.openhab.binding.bosesoundtouch/src/main/java/org/openhab/binding/bosesoundtouch/internal/AvailableSources.java +++ b/bundles/org.openhab.binding.bosesoundtouch/src/main/java/org/openhab/binding/bosesoundtouch/internal/AvailableSources.java @@ -23,43 +23,43 @@ import org.eclipse.jdt.annotation.NonNullByDefault; @NonNullByDefault public interface AvailableSources { - public boolean isBluetoothAvailable(); + boolean isBluetoothAvailable(); - public boolean isAUXAvailable(); + boolean isAUXAvailable(); - public boolean isAUX1Available(); + boolean isAUX1Available(); - public boolean isAUX2Available(); + boolean isAUX2Available(); - public boolean isAUX3Available(); + boolean isAUX3Available(); - public boolean isTVAvailable(); + boolean isTVAvailable(); - public boolean isHDMI1Available(); + boolean isHDMI1Available(); - public boolean isInternetRadioAvailable(); + boolean isInternetRadioAvailable(); - public boolean isStoredMusicAvailable(); + boolean isStoredMusicAvailable(); - public boolean isBassAvailable(); + boolean isBassAvailable(); - public void setAUXAvailable(boolean aux); + void setAUXAvailable(boolean aux); - public void setAUX1Available(boolean aux1); + void setAUX1Available(boolean aux1); - public void setAUX2Available(boolean aux2); + void setAUX2Available(boolean aux2); - public void setAUX3Available(boolean aux3); + void setAUX3Available(boolean aux3); - public void setStoredMusicAvailable(boolean storedMusic); + void setStoredMusicAvailable(boolean storedMusic); - public void setInternetRadioAvailable(boolean internetRadio); + void setInternetRadioAvailable(boolean internetRadio); - public void setBluetoothAvailable(boolean bluetooth); + void setBluetoothAvailable(boolean bluetooth); - public void setTVAvailable(boolean tv); + void setTVAvailable(boolean tv); - public void setHDMI1Available(boolean hdmi1); + void setHDMI1Available(boolean hdmi1); - public void setBassAvailable(boolean bass); + void setBassAvailable(boolean bass); } diff --git a/bundles/org.openhab.binding.caddx/src/main/java/org/openhab/binding/caddx/internal/CaddxPanelListener.java b/bundles/org.openhab.binding.caddx/src/main/java/org/openhab/binding/caddx/internal/CaddxPanelListener.java index 8c88444da..dc09d7c1f 100644 --- a/bundles/org.openhab.binding.caddx/src/main/java/org/openhab/binding/caddx/internal/CaddxPanelListener.java +++ b/bundles/org.openhab.binding.caddx/src/main/java/org/openhab/binding/caddx/internal/CaddxPanelListener.java @@ -21,5 +21,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault; */ @NonNullByDefault public interface CaddxPanelListener { - public void caddxMessage(CaddxMessage message); + void caddxMessage(CaddxMessage message); } diff --git a/bundles/org.openhab.binding.deutschebahn/src/main/java/org/openhab/binding/deutschebahn/internal/AttributeSelection.java b/bundles/org.openhab.binding.deutschebahn/src/main/java/org/openhab/binding/deutschebahn/internal/AttributeSelection.java index 3c2248075..cc610c92e 100644 --- a/bundles/org.openhab.binding.deutschebahn/src/main/java/org/openhab/binding/deutschebahn/internal/AttributeSelection.java +++ b/bundles/org.openhab.binding.deutschebahn/src/main/java/org/openhab/binding/deutschebahn/internal/AttributeSelection.java @@ -31,17 +31,17 @@ public interface AttributeSelection { * Returns the value for this attribute. */ @Nullable - public abstract Object getValue(TimetableStop stop); + Object getValue(TimetableStop stop); /** * Returns the {@link State} that should be set for the channels'value for this attribute. */ @Nullable - public abstract State getState(TimetableStop stop); + State getState(TimetableStop stop); /** * Returns a list of values as string list. * Returns empty list if value is not present, singleton list if attribute is not single-valued. */ - public abstract List getStringValues(TimetableStop t); + List getStringValues(TimetableStop t); } diff --git a/bundles/org.openhab.binding.deutschebahn/src/main/java/org/openhab/binding/deutschebahn/internal/filter/FilterTokenVisitor.java b/bundles/org.openhab.binding.deutschebahn/src/main/java/org/openhab/binding/deutschebahn/internal/filter/FilterTokenVisitor.java index 1d1440d65..8c6921474 100644 --- a/bundles/org.openhab.binding.deutschebahn/src/main/java/org/openhab/binding/deutschebahn/internal/filter/FilterTokenVisitor.java +++ b/bundles/org.openhab.binding.deutschebahn/src/main/java/org/openhab/binding/deutschebahn/internal/filter/FilterTokenVisitor.java @@ -27,25 +27,25 @@ public interface FilterTokenVisitor { /** * Handles {@link ChannelNameEquals}. */ - public abstract R handle(ChannelNameEquals equals) throws FilterParserException; + R handle(ChannelNameEquals equals) throws FilterParserException; /** * Handles {@link OrOperator}. */ - public abstract R handle(OrOperator operator) throws FilterParserException; + R handle(OrOperator operator) throws FilterParserException; /** * Handles {@link AndOperator}. */ - public abstract R handle(AndOperator operator) throws FilterParserException; + R handle(AndOperator operator) throws FilterParserException; /** * Handles {@link BracketOpenToken}. */ - public abstract R handle(BracketOpenToken token) throws FilterParserException; + R handle(BracketOpenToken token) throws FilterParserException; /** * Handles {@link BracketCloseToken}. */ - public abstract R handle(BracketCloseToken token) throws FilterParserException; + R handle(BracketCloseToken token) throws FilterParserException; } diff --git a/bundles/org.openhab.binding.deutschebahn/src/main/java/org/openhab/binding/deutschebahn/internal/timetable/TimetablesV1Api.java b/bundles/org.openhab.binding.deutschebahn/src/main/java/org/openhab/binding/deutschebahn/internal/timetable/TimetablesV1Api.java index 107810c63..cb396c4ac 100644 --- a/bundles/org.openhab.binding.deutschebahn/src/main/java/org/openhab/binding/deutschebahn/internal/timetable/TimetablesV1Api.java +++ b/bundles/org.openhab.binding.deutschebahn/src/main/java/org/openhab/binding/deutschebahn/internal/timetable/TimetablesV1Api.java @@ -51,7 +51,7 @@ public interface TimetablesV1Api { * * @return The {@link Timetable} containing the planned arrivals and departues. */ - public abstract Timetable getPlan(String evaNo, Date time) throws IOException; + Timetable getPlan(String evaNo, Date time) throws IOException; /** * Requests all known changes in the timetable for the given station. @@ -75,7 +75,7 @@ public interface TimetablesV1Api { * * @return The {@link Timetable} containing all known changes for the given station. */ - public abstract Timetable getFullChanges(String evaNo) throws IOException; + Timetable getFullChanges(String evaNo) throws IOException; /** * Requests the timetable with the planned data for the given station and time. @@ -97,5 +97,5 @@ public interface TimetablesV1Api { * * @return The {@link Timetable} containing recent changes (from last two minutes) for the given station. */ - public abstract Timetable getRecentChanges(String evaNo) throws IOException; + Timetable getRecentChanges(String evaNo) throws IOException; } diff --git a/bundles/org.openhab.binding.deutschebahn/src/main/java/org/openhab/binding/deutschebahn/internal/timetable/TimetablesV1ApiFactory.java b/bundles/org.openhab.binding.deutschebahn/src/main/java/org/openhab/binding/deutschebahn/internal/timetable/TimetablesV1ApiFactory.java index 2bae31a8e..08169c69a 100644 --- a/bundles/org.openhab.binding.deutschebahn/src/main/java/org/openhab/binding/deutschebahn/internal/timetable/TimetablesV1ApiFactory.java +++ b/bundles/org.openhab.binding.deutschebahn/src/main/java/org/openhab/binding/deutschebahn/internal/timetable/TimetablesV1ApiFactory.java @@ -28,6 +28,6 @@ public interface TimetablesV1ApiFactory { /** * Creates a new instance of the {@link TimetablesV1Api}. */ - public abstract TimetablesV1Api create(final String clientId, final String clientSecret, - final HttpCallable httpCallable) throws JAXBException; + TimetablesV1Api create(final String clientId, final String clientSecret, final HttpCallable httpCallable) + throws JAXBException; } diff --git a/bundles/org.openhab.binding.deutschebahn/src/test/java/org/openhab/binding/deutschebahn/internal/timetable/TimetablesV1ImplTestHelper.java b/bundles/org.openhab.binding.deutschebahn/src/test/java/org/openhab/binding/deutschebahn/internal/timetable/TimetablesV1ImplTestHelper.java index 25788fa6f..4b73bd333 100644 --- a/bundles/org.openhab.binding.deutschebahn/src/test/java/org/openhab/binding/deutschebahn/internal/timetable/TimetablesV1ImplTestHelper.java +++ b/bundles/org.openhab.binding.deutschebahn/src/test/java/org/openhab/binding/deutschebahn/internal/timetable/TimetablesV1ImplTestHelper.java @@ -27,16 +27,16 @@ import org.eclipse.jdt.annotation.NonNullByDefault; @NonNullByDefault public interface TimetablesV1ImplTestHelper { - public static final String EVA_LEHRTE = "8000226"; - public static final String EVA_HANNOVER_HBF = "8000152"; - public static final String CLIENT_ID = "bdwrpmxuo6157jrekftlbcc6ju9awo"; - public static final String CLIENT_SECRET = "354c8161cd7fb0936c840240280c131e"; + static final String EVA_LEHRTE = "8000226"; + static final String EVA_HANNOVER_HBF = "8000152"; + static final String CLIENT_ID = "bdwrpmxuo6157jrekftlbcc6ju9awo"; + static final String CLIENT_SECRET = "354c8161cd7fb0936c840240280c131e"; /** * Creates a {@link TimetablesApiTestModule} that uses http response data from file system. * Uses default-testdata from directory /timetablesData */ - public default TimetablesApiTestModule createApiWithTestdata() throws Exception { + default TimetablesApiTestModule createApiWithTestdata() throws Exception { return this.createApiWithTestdata("/timetablesData"); } @@ -45,7 +45,7 @@ public interface TimetablesV1ImplTestHelper { * * @param dataDirectory Directory within test-resources containing the stub-data. */ - public default TimetablesApiTestModule createApiWithTestdata(String dataDirectory) throws Exception { + default TimetablesApiTestModule createApiWithTestdata(String dataDirectory) throws Exception { final URL timetablesData = getClass().getResource(dataDirectory); assertNotNull(timetablesData); final File testDataDir = new File(timetablesData.toURI()); diff --git a/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/lib/manager/ConnectionManager.java b/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/lib/manager/ConnectionManager.java index 84371c574..7a5d5bae9 100644 --- a/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/lib/manager/ConnectionManager.java +++ b/bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/lib/manager/ConnectionManager.java @@ -25,13 +25,13 @@ import org.openhab.binding.digitalstrom.internal.lib.serverconnection.HttpTransp */ public interface ConnectionManager { - public static final int GENERAL_EXCEPTION = -1; - public static final int MALFORMED_URL_EXCEPTION = -2; - public static final int CONNECTION_EXCEPTION = -3; - public static final int SOCKET_TIMEOUT_EXCEPTION = -4; - public static final int UNKNOWN_HOST_EXCEPTION = -5; - public static final int AUTHENTIFICATION_PROBLEM = -6; - public static final int SSL_HANDSHAKE_EXCEPTION = -7; + static final int GENERAL_EXCEPTION = -1; + static final int MALFORMED_URL_EXCEPTION = -2; + static final int CONNECTION_EXCEPTION = -3; + static final int SOCKET_TIMEOUT_EXCEPTION = -4; + static final int UNKNOWN_HOST_EXCEPTION = -5; + static final int AUTHENTIFICATION_PROBLEM = -6; + static final int SSL_HANDSHAKE_EXCEPTION = -7; /** * Returns the {@link HttpTransport} to execute queries or special commands on the digitalSTROM-Server. diff --git a/bundles/org.openhab.binding.easee/src/main/java/org/openhab/binding/easee/internal/command/EaseeCommand.java b/bundles/org.openhab.binding.easee/src/main/java/org/openhab/binding/easee/internal/command/EaseeCommand.java index 0e1b70d7d..57fcaa4ad 100644 --- a/bundles/org.openhab.binding.easee/src/main/java/org/openhab/binding/easee/internal/command/EaseeCommand.java +++ b/bundles/org.openhab.binding.easee/src/main/java/org/openhab/binding/easee/internal/command/EaseeCommand.java @@ -43,5 +43,5 @@ public interface EaseeCommand extends SuccessListener, FailureListener, ContentL * * @param resultProcessor */ - public void registerResultProcessor(JsonResultProcessor resultProcessor); + void registerResultProcessor(JsonResultProcessor resultProcessor); } diff --git a/bundles/org.openhab.binding.ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/api/EcovacsApi.java b/bundles/org.openhab.binding.ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/api/EcovacsApi.java index b226bb636..b2068384b 100644 --- a/bundles/org.openhab.binding.ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/api/EcovacsApi.java +++ b/bundles/org.openhab.binding.ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/api/EcovacsApi.java @@ -23,11 +23,11 @@ import org.openhab.binding.ecovacs.internal.api.impl.EcovacsApiImpl; */ @NonNullByDefault public interface EcovacsApi { - public static EcovacsApi create(HttpClient httpClient, EcovacsApiConfiguration configuration) { + static EcovacsApi create(HttpClient httpClient, EcovacsApiConfiguration configuration) { return new EcovacsApiImpl(httpClient, configuration); } - public void loginAndGetAccessToken() throws EcovacsApiException, InterruptedException; + void loginAndGetAccessToken() throws EcovacsApiException, InterruptedException; - public List getDevices() throws EcovacsApiException, InterruptedException; + List getDevices() throws EcovacsApiException, InterruptedException; } diff --git a/bundles/org.openhab.binding.ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/api/EcovacsDevice.java b/bundles/org.openhab.binding.ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/api/EcovacsDevice.java index e74e3f496..5d938d736 100644 --- a/bundles/org.openhab.binding.ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/api/EcovacsDevice.java +++ b/bundles/org.openhab.binding.ecovacs/src/main/java/org/openhab/binding/ecovacs/internal/api/EcovacsDevice.java @@ -27,7 +27,7 @@ import org.openhab.binding.ecovacs.internal.api.model.DeviceCapability; */ @NonNullByDefault public interface EcovacsDevice { - public interface EventListener { + interface EventListener { void onFirmwareVersionChanged(EcovacsDevice device, String fwVersion); void onBatteryLevelUpdated(EcovacsDevice device, int newLevelPercent); diff --git a/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/transceiver/EventListener.java b/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/transceiver/EventListener.java index 213b9d512..21f82cf69 100644 --- a/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/transceiver/EventListener.java +++ b/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/transceiver/EventListener.java @@ -21,5 +21,5 @@ import org.openhab.binding.enocean.internal.messages.EventMessage; */ @NonNullByDefault public interface EventListener { - public void eventReceived(EventMessage event); + void eventReceived(EventMessage event); } diff --git a/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/transceiver/PacketListener.java b/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/transceiver/PacketListener.java index 94caf5c9c..0a3151d54 100644 --- a/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/transceiver/PacketListener.java +++ b/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/transceiver/PacketListener.java @@ -22,7 +22,7 @@ import org.openhab.binding.enocean.internal.messages.BasePacket; @NonNullByDefault public interface PacketListener { - public void packetReceived(BasePacket packet); + void packetReceived(BasePacket packet); - public long getEnOceanIdToListenTo(); + long getEnOceanIdToListenTo(); } diff --git a/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/transceiver/TransceiverErrorListener.java b/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/transceiver/TransceiverErrorListener.java index 99b6f452b..ce40945b5 100644 --- a/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/transceiver/TransceiverErrorListener.java +++ b/bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/transceiver/TransceiverErrorListener.java @@ -21,5 +21,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault; @NonNullByDefault public interface TransceiverErrorListener { - public void errorOccured(Throwable exception); + void errorOccured(Throwable exception); } diff --git a/bundles/org.openhab.binding.evohome/src/main/java/org/openhab/binding/evohome/internal/RunnableWithTimeout.java b/bundles/org.openhab.binding.evohome/src/main/java/org/openhab/binding/evohome/internal/RunnableWithTimeout.java index ea7b90a15..1774c3dc5 100644 --- a/bundles/org.openhab.binding.evohome/src/main/java/org/openhab/binding/evohome/internal/RunnableWithTimeout.java +++ b/bundles/org.openhab.binding.evohome/src/main/java/org/openhab/binding/evohome/internal/RunnableWithTimeout.java @@ -25,5 +25,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault; @NonNullByDefault public interface RunnableWithTimeout { - public abstract void run() throws TimeoutException; + void run() throws TimeoutException; } diff --git a/bundles/org.openhab.binding.evohome/src/main/java/org/openhab/binding/evohome/internal/api/models/v2/dto/request/RequestBuilder.java b/bundles/org.openhab.binding.evohome/src/main/java/org/openhab/binding/evohome/internal/api/models/v2/dto/request/RequestBuilder.java index 048b3ae9e..72b7ba61f 100644 --- a/bundles/org.openhab.binding.evohome/src/main/java/org/openhab/binding/evohome/internal/api/models/v2/dto/request/RequestBuilder.java +++ b/bundles/org.openhab.binding.evohome/src/main/java/org/openhab/binding/evohome/internal/api/models/v2/dto/request/RequestBuilder.java @@ -20,5 +20,5 @@ package org.openhab.binding.evohome.internal.api.models.v2.dto.request; */ public interface RequestBuilder { - public T build(); + T build(); } diff --git a/bundles/org.openhab.binding.evohome/src/main/java/org/openhab/binding/evohome/internal/handler/AccountStatusListener.java b/bundles/org.openhab.binding.evohome/src/main/java/org/openhab/binding/evohome/internal/handler/AccountStatusListener.java index 4341688a7..fc9b05e65 100644 --- a/bundles/org.openhab.binding.evohome/src/main/java/org/openhab/binding/evohome/internal/handler/AccountStatusListener.java +++ b/bundles/org.openhab.binding.evohome/src/main/java/org/openhab/binding/evohome/internal/handler/AccountStatusListener.java @@ -29,5 +29,5 @@ public interface AccountStatusListener { * * @param status The new status of the account thing */ - public void accountStatusChanged(ThingStatus status); + void accountStatusChanged(ThingStatus status); } diff --git a/bundles/org.openhab.binding.flicbutton/src/main/java/org/openhab/binding/flicbutton/internal/discovery/FlicButtonDiscoveryService.java b/bundles/org.openhab.binding.flicbutton/src/main/java/org/openhab/binding/flicbutton/internal/discovery/FlicButtonDiscoveryService.java index 72476e1fe..68eecbe7c 100644 --- a/bundles/org.openhab.binding.flicbutton/src/main/java/org/openhab/binding/flicbutton/internal/discovery/FlicButtonDiscoveryService.java +++ b/bundles/org.openhab.binding.flicbutton/src/main/java/org/openhab/binding/flicbutton/internal/discovery/FlicButtonDiscoveryService.java @@ -33,9 +33,9 @@ public interface FlicButtonDiscoveryService extends DiscoveryService { * @param bdaddr Bluetooth address of the discovered Flic button * @return UID that was created by the discovery service */ - public ThingUID flicButtonDiscovered(Bdaddr bdaddr); + ThingUID flicButtonDiscovered(Bdaddr bdaddr); - public void activate(FlicClient client); + void activate(FlicClient client); - public void deactivate(); + void deactivate(); } diff --git a/bundles/org.openhab.binding.freebox/src/main/java/org/openhab/binding/freebox/internal/FreeboxDataListener.java b/bundles/org.openhab.binding.freebox/src/main/java/org/openhab/binding/freebox/internal/FreeboxDataListener.java index 7af9b1b00..d6b027b4e 100644 --- a/bundles/org.openhab.binding.freebox/src/main/java/org/openhab/binding/freebox/internal/FreeboxDataListener.java +++ b/bundles/org.openhab.binding.freebox/src/main/java/org/openhab/binding/freebox/internal/FreeboxDataListener.java @@ -39,6 +39,6 @@ public interface FreeboxDataListener { * @param lanHosts the LAN data received from the Freebox server. * @param airPlayDevices the list of AirPlay devices received from the Freebox server. */ - public void onDataFetched(ThingUID bridge, @Nullable List lanHosts, + void onDataFetched(ThingUID bridge, @Nullable List lanHosts, @Nullable List airPlayDevices); } diff --git a/bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/GardenaSmart.java b/bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/GardenaSmart.java index e8bda9415..b5fca4829 100644 --- a/bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/GardenaSmart.java +++ b/bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/GardenaSmart.java @@ -32,30 +32,30 @@ public interface GardenaSmart { /** * Disposes Gardena smart system. */ - public void dispose(); + void dispose(); /** * Returns all devices from all locations. */ - public Collection getAllDevices(); + Collection getAllDevices(); /** * Returns a device with the given id. */ - public Device getDevice(String deviceId) throws GardenaDeviceNotFoundException; + Device getDevice(String deviceId) throws GardenaDeviceNotFoundException; /** * Sends a command to Gardena smart system. */ - public void sendCommand(DataItem dataItem, GardenaCommand gardenaCommand) throws GardenaException; + void sendCommand(DataItem dataItem, GardenaCommand gardenaCommand) throws GardenaException; /** * Returns the id. */ - public String getId(); + String getId(); /** * Restarts all WebSocket. */ - public void restartWebsockets(); + void restartWebsockets(); } diff --git a/bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/GardenaSmartEventListener.java b/bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/GardenaSmartEventListener.java index e91fdd542..9ab7fee61 100644 --- a/bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/GardenaSmartEventListener.java +++ b/bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/GardenaSmartEventListener.java @@ -26,15 +26,15 @@ public interface GardenaSmartEventListener { /** * Called when a device has been updated. */ - public void onDeviceUpdated(Device device); + void onDeviceUpdated(Device device); /** * Called when a new device has been detected. */ - public void onNewDevice(Device device); + void onNewDevice(Device device); /** * Called when an unrecoverable error occurs. */ - public void onError(); + void onError(); } diff --git a/bundles/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/command/CommandInterface.java b/bundles/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/command/CommandInterface.java index c1b2a61f2..6a90acace 100644 --- a/bundles/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/command/CommandInterface.java +++ b/bundles/org.openhab.binding.globalcache/src/main/java/org/openhab/binding/globalcache/internal/command/CommandInterface.java @@ -24,27 +24,27 @@ public interface CommandInterface { * * @return module number as String */ - public String getModule(); + String getModule(); /** * Get the connector number to which the command will be sent * * @return connector number as String */ - public String getConnector(); + String getConnector(); /** * Used by command implementations to parse the device's response */ - abstract void parseSuccessfulReply(); + void parseSuccessfulReply(); /* * Used by command implementations to report a successful command execution */ - abstract void logSuccess(); + void logSuccess(); /* * Used by command implementations to report a failed command execution */ - abstract void logFailure(); + void logFailure(); } diff --git a/bundles/org.openhab.binding.harmonyhub/src/main/java/org/openhab/binding/harmonyhub/internal/handler/HubStatusListener.java b/bundles/org.openhab.binding.harmonyhub/src/main/java/org/openhab/binding/harmonyhub/internal/handler/HubStatusListener.java index 55e65e941..24784da31 100644 --- a/bundles/org.openhab.binding.harmonyhub/src/main/java/org/openhab/binding/harmonyhub/internal/handler/HubStatusListener.java +++ b/bundles/org.openhab.binding.harmonyhub/src/main/java/org/openhab/binding/harmonyhub/internal/handler/HubStatusListener.java @@ -24,5 +24,5 @@ import org.openhab.core.thing.ThingStatus; */ @NonNullByDefault public interface HubStatusListener { - public void hubStatusChanged(ThingStatus status); + void hubStatusChanged(ThingStatus status); } diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/HomematicGateway.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/HomematicGateway.java index b2a1ecb7d..b2253426a 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/HomematicGateway.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/HomematicGateway.java @@ -31,54 +31,54 @@ public interface HomematicGateway { /** * Initializes the Homematic gateway and starts the watchdog thread. */ - public void initialize() throws IOException; + void initialize() throws IOException; /** * Disposes the HomematicGateway and stops everything. */ - public void dispose(); + void dispose(); /** * Returns the cached datapoint. */ - public HmDatapoint getDatapoint(HmDatapointInfo dpInfo) throws HomematicClientException; + HmDatapoint getDatapoint(HmDatapointInfo dpInfo) throws HomematicClientException; /** * Returns the cached device. */ - public HmDevice getDevice(String address) throws HomematicClientException; + HmDevice getDevice(String address) throws HomematicClientException; /** * Cancel loading all device metadata. */ - public void cancelLoadAllDeviceMetadata(); + void cancelLoadAllDeviceMetadata(); /** * Loads all device, channel and datapoint metadata from the gateway. */ - public void loadAllDeviceMetadata() throws IOException; + void loadAllDeviceMetadata() throws IOException; /** * Loads all values into the given channel. */ - public void loadChannelValues(HmChannel channel) throws IOException; + void loadChannelValues(HmChannel channel) throws IOException; /** * Loads the value of the given {@link HmDatapoint} from the device. * * @param dp The HmDatapoint that shall be loaded */ - public void loadDatapointValue(HmDatapoint dp) throws IOException; + void loadDatapointValue(HmDatapoint dp) throws IOException; /** * Reenumerates the set of VALUES datapoints for the given channel. */ - public void updateChannelValueDatapoints(HmChannel channel) throws IOException; + void updateChannelValueDatapoints(HmChannel channel) throws IOException; /** * Prepares the device for reloading all values from the gateway. */ - public void triggerDeviceValuesReload(HmDevice device); + void triggerDeviceValuesReload(HmDevice device); /** * Sends the datapoint to the Homematic gateway or executes virtual datapoints. @@ -91,13 +91,13 @@ public interface HomematicGateway { * {@link HomematicBindingConstants#RX_WAKEUP_MODE "WAKEUP"} for wakeup mode, or null for the default * mode) */ - public void sendDatapoint(HmDatapoint dp, HmDatapointConfig dpConfig, Object newValue, String rxMode) + void sendDatapoint(HmDatapoint dp, HmDatapointConfig dpConfig, Object newValue, String rxMode) throws IOException, HomematicClientException; /** * Returns the id of the HomematicGateway. */ - public String getId(); + String getId(); /** * Set install mode of homematic controller. During install mode the @@ -108,7 +108,7 @@ public interface HomematicGateway { * @param seconds specify how long the install mode should last * @throws IOException if RpcClient fails to propagate command */ - public void setInstallMode(boolean enable, int seconds) throws IOException; + void setInstallMode(boolean enable, int seconds) throws IOException; /** * Get current install mode of homematic contoller @@ -118,17 +118,17 @@ public interface HomematicGateway { * install_mode==false * @throws IOException if RpcClient fails to propagate command */ - public int getInstallMode() throws IOException; + int getInstallMode() throws IOException; /** * Loads all rssi values from the gateway. */ - public void loadRssiValues() throws IOException; + void loadRssiValues() throws IOException; /** * Starts the connection and event tracker threads. */ - public void startWatchdogs(); + void startWatchdogs(); /** * Deletes the device from the gateway. @@ -138,5 +138,5 @@ public interface HomematicGateway { * @param force true will delete the device even if it is not reachable. * @param defer true will delete the device once it becomes available. */ - public void deleteDevice(String address, boolean reset, boolean force, boolean defer); + void deleteDevice(String address, boolean reset, boolean force, boolean defer); } diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/HomematicGatewayAdapter.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/HomematicGatewayAdapter.java index 082d571ea..3a8239f89 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/HomematicGatewayAdapter.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/HomematicGatewayAdapter.java @@ -26,50 +26,50 @@ public interface HomematicGatewayAdapter { /** * Called when a datapoint has been updated. */ - public void onStateUpdated(HmDatapoint dp); + void onStateUpdated(HmDatapoint dp); /** * Called when a new device has been detected on the gateway. */ - public void onNewDevice(HmDevice device); + void onNewDevice(HmDevice device); /** * Called when a device has been deleted from the gateway. */ - public void onDeviceDeleted(HmDevice device); + void onDeviceDeleted(HmDevice device); /** * Called when the devices values should be reloaded from the gateway. */ - public void reloadDeviceValues(HmDevice device); + void reloadDeviceValues(HmDevice device); /** * Called when all values for all devices should be reloaded from the gateway. */ - public void reloadAllDeviceValues(); + void reloadAllDeviceValues(); /** * Called when a device has been loaded from the gateway. */ - public void onDeviceLoaded(HmDevice device); + void onDeviceLoaded(HmDevice device); /** * Called when the connection is lost to the gateway. */ - public void onConnectionLost(); + void onConnectionLost(); /** * Called when the connection is resumed to the gateway. */ - public void onConnectionResumed(); + void onConnectionResumed(); /** * Returns the configuration of a datapoint. */ - public HmDatapointConfig getDatapointConfig(HmDatapoint dp); + HmDatapointConfig getDatapointConfig(HmDatapoint dp); /** * Called when a new value for the duty cycle of the gateway has been received. */ - public void onDutyCycleRatioUpdate(int dutyCycleRatio); + void onDutyCycleRatioUpdate(int dutyCycleRatio); } diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/message/RpcRequest.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/message/RpcRequest.java index 6d5c5b2ee..75b891266 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/message/RpcRequest.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/message/RpcRequest.java @@ -22,15 +22,15 @@ public interface RpcRequest { /** * Adds arguments to the RPC method. */ - public void addArg(Object arg); + void addArg(Object arg); /** * Generates the RPC data. */ - public T createMessage(); + T createMessage(); /** * Returns the name of the rpc method. */ - public String getMethodName(); + String getMethodName(); } diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/message/RpcResponse.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/message/RpcResponse.java index 967e0f29e..52f0372d8 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/message/RpcResponse.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/message/RpcResponse.java @@ -22,10 +22,10 @@ public interface RpcResponse { /** * Returns the decoded methodName. */ - public String getMethodName(); + String getMethodName(); /** * Returns the decoded data. */ - public Object[] getResponseData(); + Object[] getResponseData(); } diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/parser/RpcParser.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/parser/RpcParser.java index 3c07054fe..484162ce9 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/parser/RpcParser.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/parser/RpcParser.java @@ -24,5 +24,5 @@ public interface RpcParser { /** * Parses the message returns the result. */ - public R parse(M message) throws IOException; + R parse(M message) throws IOException; } diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/server/RpcEventListener.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/server/RpcEventListener.java index 5a180e0fb..5a22734f5 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/server/RpcEventListener.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/server/RpcEventListener.java @@ -26,15 +26,15 @@ public interface RpcEventListener { /** * Called when a new event is received from a Homeamtic gateway. */ - public void eventReceived(HmDatapointInfo dpInfo, Object newValue); + void eventReceived(HmDatapointInfo dpInfo, Object newValue); /** * Called when new devices has been detected on the Homeamtic gateway. */ - public void newDevices(List adresses); + void newDevices(List adresses); /** * Called when devices has been deleted from the Homeamtic gateway. */ - public void deleteDevices(List addresses); + void deleteDevices(List addresses); } diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/server/RpcServer.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/server/RpcServer.java index 538eaf281..9b969d055 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/server/RpcServer.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/server/RpcServer.java @@ -24,10 +24,10 @@ public interface RpcServer { /** * Starts the rpc server. */ - public void start() throws IOException; + void start() throws IOException; /** * Stops the rpc server. */ - public void shutdown(); + void shutdown(); } diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/virtual/VirtualDatapointHandler.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/virtual/VirtualDatapointHandler.java index 6ec918f60..85e5019f4 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/virtual/VirtualDatapointHandler.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/virtual/VirtualDatapointHandler.java @@ -31,36 +31,36 @@ public interface VirtualDatapointHandler { /** * Returns the virtual datapoint name. */ - public String getName(); + String getName(); /** * Adds the virtual datapoint to the device. */ - public void initialize(HmDevice device); + void initialize(HmDevice device); /** * Returns true, if the virtual datapoint can handle a command for the given datapoint. */ - public boolean canHandleCommand(HmDatapoint dp, Object value); + boolean canHandleCommand(HmDatapoint dp, Object value); /** * Handles the special functionality for the given virtual datapoint. */ - public void handleCommand(VirtualGateway gateway, HmDatapoint dp, HmDatapointConfig dpConfig, Object value) + void handleCommand(VirtualGateway gateway, HmDatapoint dp, HmDatapointConfig dpConfig, Object value) throws IOException, HomematicClientException; /** * Returns true, if the virtual datapoint can handle the event for the given datapoint. */ - public boolean canHandleEvent(HmDatapoint dp); + boolean canHandleEvent(HmDatapoint dp); /** * Handles an event to extract data required for the virtual datapoint. */ - public void handleEvent(VirtualGateway gateway, HmDatapoint dp); + void handleEvent(VirtualGateway gateway, HmDatapoint dp); /** * Returns the virtual datapoint in the given channel. */ - public HmDatapoint getVirtualDatapoint(HmChannel channel); + HmDatapoint getVirtualDatapoint(HmChannel channel); } diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/virtual/VirtualGateway.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/virtual/VirtualGateway.java index 4317bee69..09067318f 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/virtual/VirtualGateway.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/virtual/VirtualGateway.java @@ -32,21 +32,21 @@ public interface VirtualGateway extends HomematicGateway { /** * Sends the datapoint from a virtual datapoint. */ - public void sendDatapointIgnoreVirtual(HmDatapoint dp, HmDatapointConfig dpConfig, Object newValue) + void sendDatapointIgnoreVirtual(HmDatapoint dp, HmDatapointConfig dpConfig, Object newValue) throws IOException, HomematicClientException; /** * Returns the rpc client. */ - public RpcClient getRpcClient(HmInterface hmInterface) throws IOException; + RpcClient getRpcClient(HmInterface hmInterface) throws IOException; /** * Disables a boolean datapoint by setting the value to false after a given delay. */ - public void disableDatapoint(HmDatapoint dp, double delay); + void disableDatapoint(HmDatapoint dp, double delay); /** * Returns the event listener. */ - public HomematicGatewayAdapter getGatewayAdapter(); + HomematicGatewayAdapter getGatewayAdapter(); } diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/converter/TypeConverter.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/converter/TypeConverter.java index 6f44e0e30..a722f0499 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/converter/TypeConverter.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/converter/TypeConverter.java @@ -26,10 +26,10 @@ public interface TypeConverter { /** * Converts an openHAB type to a Homematic value. */ - public Object convertToBinding(Type type, HmDatapoint dp) throws ConverterException; + Object convertToBinding(Type type, HmDatapoint dp) throws ConverterException; /** * Converts a Homematic value to an openHAB type. */ - public T convertFromBinding(HmDatapoint dp) throws ConverterException; + T convertFromBinding(HmDatapoint dp) throws ConverterException; } diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicChannelGroupTypeProvider.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicChannelGroupTypeProvider.java index d17c4f22c..381389be0 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicChannelGroupTypeProvider.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicChannelGroupTypeProvider.java @@ -26,7 +26,7 @@ public interface HomematicChannelGroupTypeProvider extends ChannelGroupTypeProvi /** * Adds the ChannelGroupType to this provider. */ - public void addChannelGroupType(ChannelGroupType channelGroupType); + void addChannelGroupType(ChannelGroupType channelGroupType); /** * Use this method to lookup a ChannelGroupType which was generated by the @@ -41,5 +41,5 @@ public interface HomematicChannelGroupTypeProvider extends ChannelGroupTypeProvi * null if no ChannelGroupType with the given UID was added * before */ - public ChannelGroupType getInternalChannelGroupType(ChannelGroupTypeUID channelGroupTypeUID); + ChannelGroupType getInternalChannelGroupType(ChannelGroupTypeUID channelGroupTypeUID); } diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicChannelTypeProvider.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicChannelTypeProvider.java index 1e730c835..ece631a2a 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicChannelTypeProvider.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicChannelTypeProvider.java @@ -26,7 +26,7 @@ public interface HomematicChannelTypeProvider extends ChannelTypeProvider { /** * Adds the ChannelType to this provider. */ - public void addChannelType(ChannelType channelType); + void addChannelType(ChannelType channelType); /** * Use this method to lookup a ChannelType which was generated by the @@ -41,5 +41,5 @@ public interface HomematicChannelTypeProvider extends ChannelTypeProvider { * null if no ChannelType with the given UID was added * before */ - public ChannelType getInternalChannelType(ChannelTypeUID channelTypeUID); + ChannelType getInternalChannelType(ChannelTypeUID channelTypeUID); } diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicConfigDescriptionProvider.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicConfigDescriptionProvider.java index 6186a4cf5..10a8c82e0 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicConfigDescriptionProvider.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicConfigDescriptionProvider.java @@ -29,7 +29,7 @@ public interface HomematicConfigDescriptionProvider extends ConfigDescriptionPro /** * Adds the ConfigDescription to this provider. */ - public void addConfigDescription(ConfigDescription configDescription); + void addConfigDescription(ConfigDescription configDescription); /** * Provides a {@link ConfigDescription} for the given URI. @@ -56,5 +56,5 @@ public interface HomematicConfigDescriptionProvider extends ConfigDescriptionPro * null if no ConfigDescription with the given URI was added * before */ - public ConfigDescription getInternalConfigDescription(URI uri); + ConfigDescription getInternalConfigDescription(URI uri); } diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicThingTypeProvider.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicThingTypeProvider.java index 76faace1c..1a01f6fba 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicThingTypeProvider.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicThingTypeProvider.java @@ -26,7 +26,7 @@ public interface HomematicThingTypeProvider extends ThingTypeProvider { /** * Adds the ThingType to this provider. */ - public void addThingType(ThingType thingType); + void addThingType(ThingType thingType); /** * Use this method to lookup a ThingType which was generated by the @@ -41,5 +41,5 @@ public interface HomematicThingTypeProvider extends ThingTypeProvider { * null if no ThingType with the given thingTypeUID was added * before */ - public ThingType getInternalThingType(ThingTypeUID thingTypeUID); + ThingType getInternalThingType(ThingTypeUID thingTypeUID); } diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicTypeGenerator.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicTypeGenerator.java index fc4d9c4f2..5f95e28b9 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicTypeGenerator.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicTypeGenerator.java @@ -23,16 +23,16 @@ public interface HomematicTypeGenerator { /** * Initializes the type generator. */ - public void initialize(); + void initialize(); /** * Generates the ThingType and ChannelTypes for the given device. */ - public void generate(HmDevice device); + void generate(HmDevice device); /** * Validates all devices for multiple firmware versions. Different firmware versions for the same device may have * different datapoints which may cause warnings in the logfile. */ - public void validateFirmwares(); + void validateFirmwares(); } diff --git a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/type/HomematicThingTypeExcluder.java b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/type/HomematicThingTypeExcluder.java index 125dff65e..5a360a225 100644 --- a/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/type/HomematicThingTypeExcluder.java +++ b/bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/type/HomematicThingTypeExcluder.java @@ -48,7 +48,7 @@ public interface HomematicThingTypeExcluder { * @return {@link ThingTypeUID}s of ThingTypes that are supposed to be * excluded from the binding's thing-type generation */ - public Set getExcludedThingTypes(); + Set getExcludedThingTypes(); /** * Check for the given {@link ThingTypeUID} whether it is excluded by this @@ -57,7 +57,7 @@ public interface HomematicThingTypeExcluder { * @param thingType a specific ThingType, specified by its {@link ThingTypeUID} * @return true, if the {@link ThingType} is excluded */ - public boolean isThingTypeExcluded(ThingTypeUID thingType); + boolean isThingTypeExcluded(ThingTypeUID thingType); /** * Check for the given {@link ChannelTypeUID} whether it is excluded by this @@ -67,7 +67,7 @@ public interface HomematicThingTypeExcluder { * @return true, if the {@link org.openhab.core.thing.type.ChannelType} is * excluded */ - public boolean isChannelTypeExcluded(ChannelTypeUID channelType); + boolean isChannelTypeExcluded(ChannelTypeUID channelType); /** * Check for the given {@link ChannelGroupTypeUID} whether it is excluded by @@ -78,7 +78,7 @@ public interface HomematicThingTypeExcluder { * {@link org.openhab.core.thing.type.ChannelGroupType} is * excluded */ - public boolean isChannelGroupTypeExcluded(ChannelGroupTypeUID channelGroupType); + boolean isChannelGroupTypeExcluded(ChannelGroupTypeUID channelGroupType); /** * Check for the given config-description-{@link URI} whether it is excluded by @@ -88,5 +88,5 @@ public interface HomematicThingTypeExcluder { * @return true, if the {@link org.openhab.core.config.core.ConfigDescription} is * excluded */ - public boolean isConfigDescriptionExcluded(URI configDescriptionURI); + boolean isConfigDescriptionExcluded(URI configDescriptionURI); } diff --git a/bundles/org.openhab.binding.hydrawise/src/main/java/org/openhab/binding/hydrawise/internal/HydrawiseControllerListener.java b/bundles/org.openhab.binding.hydrawise/src/main/java/org/openhab/binding/hydrawise/internal/HydrawiseControllerListener.java index 8c931f4bc..3e9919021 100644 --- a/bundles/org.openhab.binding.hydrawise/src/main/java/org/openhab/binding/hydrawise/internal/HydrawiseControllerListener.java +++ b/bundles/org.openhab.binding.hydrawise/src/main/java/org/openhab/binding/hydrawise/internal/HydrawiseControllerListener.java @@ -24,5 +24,5 @@ import org.openhab.binding.hydrawise.internal.api.graphql.dto.Controller; */ @NonNullByDefault public interface HydrawiseControllerListener { - public void onData(List controllers); + void onData(List controllers); } diff --git a/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/driver/DriverListener.java b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/driver/DriverListener.java index 66263e67d..333fffae4 100644 --- a/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/driver/DriverListener.java +++ b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/driver/DriverListener.java @@ -26,10 +26,10 @@ public interface DriverListener { /** * Notification that querying of the modems on all ports has successfully completed. */ - public abstract void driverCompletelyInitialized(); + void driverCompletelyInitialized(); /** * Notification that the driver was disconnected */ - public abstract void disconnected(); + void disconnected(); } diff --git a/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/message/MsgListener.java b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/message/MsgListener.java index c07f6fefa..d77ae302c 100644 --- a/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/message/MsgListener.java +++ b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/message/MsgListener.java @@ -27,5 +27,5 @@ public interface MsgListener { * * @param msg the message received */ - public abstract void msg(Msg msg); + void msg(Msg msg); } diff --git a/bundles/org.openhab.binding.irtrans/src/main/java/org/openhab/binding/irtrans/internal/handler/TransceiverStatusListener.java b/bundles/org.openhab.binding.irtrans/src/main/java/org/openhab/binding/irtrans/internal/handler/TransceiverStatusListener.java index 86a21a20e..b1e4ecdb8 100644 --- a/bundles/org.openhab.binding.irtrans/src/main/java/org/openhab/binding/irtrans/internal/handler/TransceiverStatusListener.java +++ b/bundles/org.openhab.binding.irtrans/src/main/java/org/openhab/binding/irtrans/internal/handler/TransceiverStatusListener.java @@ -31,5 +31,5 @@ public interface TransceiverStatusListener { * @param bridge * @param command the infrared command */ - public void onCommandReceived(EthernetBridgeHandler bridge, IrCommand command); + void onCommandReceived(EthernetBridgeHandler bridge, IrCommand command); } diff --git a/bundles/org.openhab.binding.jeelink/src/main/java/org/openhab/binding/jeelink/internal/JeeLinkReadingConverter.java b/bundles/org.openhab.binding.jeelink/src/main/java/org/openhab/binding/jeelink/internal/JeeLinkReadingConverter.java index 1c544cd51..5f86262fb 100644 --- a/bundles/org.openhab.binding.jeelink/src/main/java/org/openhab/binding/jeelink/internal/JeeLinkReadingConverter.java +++ b/bundles/org.openhab.binding.jeelink/src/main/java/org/openhab/binding/jeelink/internal/JeeLinkReadingConverter.java @@ -18,5 +18,5 @@ package org.openhab.binding.jeelink.internal; * @author Volker Bier - Initial contribution */ public interface JeeLinkReadingConverter { - public R createReading(String inputLine); + R createReading(String inputLine); } diff --git a/bundles/org.openhab.binding.jeelink/src/main/java/org/openhab/binding/jeelink/internal/ReadingHandler.java b/bundles/org.openhab.binding.jeelink/src/main/java/org/openhab/binding/jeelink/internal/ReadingHandler.java index d3c07635a..b4b2cf5b4 100644 --- a/bundles/org.openhab.binding.jeelink/src/main/java/org/openhab/binding/jeelink/internal/ReadingHandler.java +++ b/bundles/org.openhab.binding.jeelink/src/main/java/org/openhab/binding/jeelink/internal/ReadingHandler.java @@ -18,9 +18,9 @@ package org.openhab.binding.jeelink.internal; * @author Volker Bier - Initial contribution */ public interface ReadingHandler { - public void handleReading(R r); + void handleReading(R r); - public Class getReadingClass(); + Class getReadingClass(); - public String getSensorType(); + String getSensorType(); } diff --git a/bundles/org.openhab.binding.jeelink/src/main/java/org/openhab/binding/jeelink/internal/ReadingPublisher.java b/bundles/org.openhab.binding.jeelink/src/main/java/org/openhab/binding/jeelink/internal/ReadingPublisher.java index 71c754fc5..6322858c7 100644 --- a/bundles/org.openhab.binding.jeelink/src/main/java/org/openhab/binding/jeelink/internal/ReadingPublisher.java +++ b/bundles/org.openhab.binding.jeelink/src/main/java/org/openhab/binding/jeelink/internal/ReadingPublisher.java @@ -18,7 +18,7 @@ package org.openhab.binding.jeelink.internal; * @author Volker Bier - Initial contribution */ public interface ReadingPublisher { - public void publish(R reading); + void publish(R reading); - public void dispose(); + void dispose(); } diff --git a/bundles/org.openhab.binding.jeelink/src/main/java/org/openhab/binding/jeelink/internal/connection/ConnectionListener.java b/bundles/org.openhab.binding.jeelink/src/main/java/org/openhab/binding/jeelink/internal/connection/ConnectionListener.java index c5aea7158..c6b9ff1a1 100644 --- a/bundles/org.openhab.binding.jeelink/src/main/java/org/openhab/binding/jeelink/internal/connection/ConnectionListener.java +++ b/bundles/org.openhab.binding.jeelink/src/main/java/org/openhab/binding/jeelink/internal/connection/ConnectionListener.java @@ -39,5 +39,5 @@ public interface ConnectionListener { /** * Called whenever input has been read from the connection. */ - public void handleInput(String input); + void handleInput(String input); } diff --git a/bundles/org.openhab.binding.km200/src/main/java/org/openhab/binding/km200/internal/handler/KM200GatewayStatusListener.java b/bundles/org.openhab.binding.km200/src/main/java/org/openhab/binding/km200/internal/handler/KM200GatewayStatusListener.java index a755c1cbc..666edd91b 100644 --- a/bundles/org.openhab.binding.km200/src/main/java/org/openhab/binding/km200/internal/handler/KM200GatewayStatusListener.java +++ b/bundles/org.openhab.binding.km200/src/main/java/org/openhab/binding/km200/internal/handler/KM200GatewayStatusListener.java @@ -23,5 +23,5 @@ import org.openhab.core.thing.ThingStatus; */ @NonNullByDefault public interface KM200GatewayStatusListener { - public void gatewayStatusChanged(ThingStatus status); + void gatewayStatusChanged(ThingStatus status); } diff --git a/bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/client/DeviceInfoClient.java b/bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/client/DeviceInfoClient.java index 32677057d..c8e93a47a 100644 --- a/bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/client/DeviceInfoClient.java +++ b/bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/client/DeviceInfoClient.java @@ -36,5 +36,5 @@ public interface DeviceInfoClient { final int propertyId, final int start, final int elements, boolean authenticate, long timeout) throws InterruptedException; - public boolean isConnected(); + boolean isConnected(); } diff --git a/bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/handler/GroupAddressListener.java b/bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/handler/GroupAddressListener.java index 1dbccabac..9f67d6d93 100644 --- a/bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/handler/GroupAddressListener.java +++ b/bundles/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/handler/GroupAddressListener.java @@ -32,5 +32,5 @@ public interface GroupAddressListener extends BusMessageListener { * * @param destination */ - public boolean listensTo(GroupAddress destination); + boolean listensTo(GroupAddress destination); } diff --git a/bundles/org.openhab.binding.kodi/src/main/java/org/openhab/binding/kodi/internal/KodiEventListener.java b/bundles/org.openhab.binding.kodi/src/main/java/org/openhab/binding/kodi/internal/KodiEventListener.java index 7e1e03340..575948a58 100644 --- a/bundles/org.openhab.binding.kodi/src/main/java/org/openhab/binding/kodi/internal/KodiEventListener.java +++ b/bundles/org.openhab.binding.kodi/src/main/java/org/openhab/binding/kodi/internal/KodiEventListener.java @@ -31,7 +31,7 @@ import org.openhab.core.library.types.RawType; * @author Christoph Weitkamp - Improvements for playing audio notifications */ public interface KodiEventListener extends EventListener { - public enum KodiState { + enum KodiState { PLAY, PAUSE, END, @@ -40,7 +40,7 @@ public interface KodiEventListener extends EventListener { FASTFORWARD } - public enum KodiPlaylistState { + enum KodiPlaylistState { ADD, ADDED, INSERT, diff --git a/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/api/LaMetricTime.java b/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/api/LaMetricTime.java index 86214b67a..2e87f7e6b 100644 --- a/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/api/LaMetricTime.java +++ b/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/api/LaMetricTime.java @@ -52,7 +52,7 @@ public interface LaMetricTime { * * @return the version */ - public String getVersion(); + String getVersion(); /** * Send a low priority message to the device. @@ -63,7 +63,7 @@ public interface LaMetricTime { * @throws NotificationCreationException * if there is a communication error or malformed data */ - public String notifyInfo(String message) throws NotificationCreationException; + String notifyInfo(String message) throws NotificationCreationException; /** * Send a medium priority message to the device. @@ -74,7 +74,7 @@ public interface LaMetricTime { * @throws NotificationCreationException * if there is a communication error or malformed data */ - public String notifyWarning(String message) throws NotificationCreationException; + String notifyWarning(String message) throws NotificationCreationException; /** * Send an urgent message to the device. The notification will not be @@ -87,7 +87,7 @@ public interface LaMetricTime { * @throws NotificationCreationException * if there is a communication error or malformed data */ - public String notifyCritical(String message) throws NotificationCreationException; + String notifyCritical(String message) throws NotificationCreationException; /** * Send a notification to the device. @@ -128,7 +128,7 @@ public interface LaMetricTime { * @throws NotificationCreationException * if there is a communication error or malformed data */ - public String notify(String message, Priority priority, Icon icon, Sound sound, int messageRepeat, int soundRepeat) + String notify(String message, Priority priority, Icon icon, Sound sound, int messageRepeat, int soundRepeat) throws NotificationCreationException; /** @@ -137,7 +137,8 @@ public interface LaMetricTime { * * @return the clock app */ - public @Nullable Application getClock(); + @Nullable + Application getClock(); /** * Get the built-in countdown timer application. This application counts @@ -146,7 +147,8 @@ public interface LaMetricTime { * * @return the countdown app */ - public @Nullable Application getCountdown(); + @Nullable + Application getCountdown(); /** * Get the built-in radio application. The radio can play streams from the @@ -155,7 +157,8 @@ public interface LaMetricTime { * * @return the radio app */ - public @Nullable Application getRadio(); + @Nullable + Application getRadio(); /** * Get the built-in stopwatch application. The stopwatch counts time @@ -163,7 +166,8 @@ public interface LaMetricTime { * * @return the stopwatch app */ - public @Nullable Application getStopwatch(); + @Nullable + Application getStopwatch(); /** * Get the built-in weather application. This application displays the @@ -172,7 +176,8 @@ public interface LaMetricTime { * * @return the weather app */ - public @Nullable Application getWeather(); + @Nullable + Application getWeather(); /** * Get any of the built-in applications. @@ -181,7 +186,8 @@ public interface LaMetricTime { * the app to retrieve * @return the requested app */ - public @Nullable Application getApplication(CoreApplication coreApp); + @Nullable + Application getApplication(CoreApplication coreApp); /** * Get any application installed on the device. @@ -192,7 +198,8 @@ public interface LaMetricTime { * @throws ApplicationNotFoundException * if the requested app is not found on the device */ - public @Nullable Application getApplication(@Nullable String name) throws ApplicationNotFoundException; + @Nullable + Application getApplication(@Nullable String name) throws ApplicationNotFoundException; /** * Display the given built-in application on the device. @@ -200,7 +207,7 @@ public interface LaMetricTime { * @param coreApp * the app to activate */ - public void activateApplication(CoreApplication coreApp); + void activateApplication(CoreApplication coreApp); /** * Display the first instance (widget) of the given application on the @@ -211,7 +218,7 @@ public interface LaMetricTime { * @throws ApplicationActivationException * if the app fails to activate */ - public void activateApplication(Application app) throws ApplicationActivationException; + void activateApplication(Application app) throws ApplicationActivationException; /** * Display the given widget on the device. A widget is simply an instance of @@ -224,7 +231,7 @@ public interface LaMetricTime { * @throws ApplicationActivationException * if the app fails to activate */ - public void activateWidget(Widget widget) throws ApplicationActivationException; + void activateWidget(Widget widget) throws ApplicationActivationException; /** * Perform the given action on the first instance (widget) of the @@ -234,7 +241,7 @@ public interface LaMetricTime { * @param coreAction * the action to perform */ - public void doAction(CoreAction coreAction); + void doAction(CoreAction coreAction); /** * Perform the given action on the first instance (widget) of the given @@ -248,7 +255,7 @@ public interface LaMetricTime { * @throws ApplicationActionException * if the action cannot be performed */ - public void doAction(Application app, UpdateAction action) throws ApplicationActionException; + void doAction(Application app, UpdateAction action) throws ApplicationActionException; /** * Perform the given core action on the given widget. A widget is simply an @@ -264,7 +271,7 @@ public interface LaMetricTime { * @throws ApplicationActionException * if the action cannot be performed */ - public void doAction(@Nullable Widget widget, CoreAction action) throws ApplicationActionException; + void doAction(@Nullable Widget widget, CoreAction action) throws ApplicationActionException; /** * Perform the given action on the given widget. A widget is simply an @@ -280,7 +287,7 @@ public interface LaMetricTime { * @throws ApplicationActionException * if the action cannot be performed */ - public void doAction(Widget widget, UpdateAction action) throws ApplicationActionException; + void doAction(Widget widget, UpdateAction action) throws ApplicationActionException; /** * Set the display brightness. The {@link #setBrightnessMode(BrightnessMode) @@ -293,7 +300,7 @@ public interface LaMetricTime { * @throws UpdateException * if the update failed */ - public Display setBrightness(int brightness) throws UpdateException; + Display setBrightness(int brightness) throws UpdateException; /** * Set the brightness mode on the display. {@link BrightnessMode#MANUAL} @@ -307,7 +314,7 @@ public interface LaMetricTime { * @throws UpdateException * if the update failed */ - public Display setBrightnessMode(BrightnessMode mode) throws UpdateException; + Display setBrightnessMode(BrightnessMode mode) throws UpdateException; /** * Set the speaker volume on the device. @@ -318,7 +325,7 @@ public interface LaMetricTime { * @throws UpdateException * if the update failed */ - public Audio setVolume(int volume) throws UpdateException; + Audio setVolume(int volume) throws UpdateException; /** * Mute the device's speakers. The current volume will be stored so that @@ -329,7 +336,7 @@ public interface LaMetricTime { * @throws UpdateException * if the update failed */ - public Audio mute() throws UpdateException; + Audio mute() throws UpdateException; /** * Restore the volume prior to {@link #mute()}. If the volume has not been @@ -339,7 +346,7 @@ public interface LaMetricTime { * @throws UpdateException * if the update failed */ - public Audio unmute() throws UpdateException; + Audio unmute() throws UpdateException; /** * Set the active state of the Bluetooth radio on the device. @@ -351,7 +358,7 @@ public interface LaMetricTime { * @throws UpdateException * if the update failed */ - public Bluetooth setBluetoothActive(boolean active) throws UpdateException; + Bluetooth setBluetoothActive(boolean active) throws UpdateException; /** * Set the device name as seen via Bluetooth connectivity. @@ -362,21 +369,21 @@ public interface LaMetricTime { * @throws UpdateException * if the update failed */ - public Bluetooth setBluetoothName(String name) throws UpdateException; + Bluetooth setBluetoothName(String name) throws UpdateException; /** * Get the local API for more advanced interactions as well device inquiry. * * @return the local API */ - public LaMetricTimeLocal getLocalApi(); + LaMetricTimeLocal getLocalApi(); /** * Get the cloud API for interacting with LaMetric's services. * * @return the cloud API */ - public LaMetricTimeCloud getCloudApi(); + LaMetricTimeCloud getCloudApi(); /** * Create an instance of this API. For greater control over the @@ -388,7 +395,7 @@ public interface LaMetricTime { * the configuration parameters that the new instance will use * @return the API instance */ - public static LaMetricTime create(Configuration config) { + static LaMetricTime create(Configuration config) { return new LaMetricTimeImpl(config); } @@ -404,7 +411,7 @@ public interface LaMetricTime { * communicating with the device and cloud services * @return the API instance */ - public static LaMetricTime create(Configuration config, ClientBuilder clientBuilder) { + static LaMetricTime create(Configuration config, ClientBuilder clientBuilder) { return new LaMetricTimeImpl(config, clientBuilder); } @@ -419,7 +426,7 @@ public interface LaMetricTime { * the cloud API configuration for the new instance * @return the API instance */ - public static LaMetricTime create(LocalConfiguration localConfig, CloudConfiguration cloudConfig) { + static LaMetricTime create(LocalConfiguration localConfig, CloudConfiguration cloudConfig) { return new LaMetricTimeImpl(localConfig, cloudConfig); } @@ -436,7 +443,7 @@ public interface LaMetricTime { * communicating with the device and cloud services * @return the API instance */ - public static LaMetricTime create(LocalConfiguration localConfig, CloudConfiguration cloudConfig, + static LaMetricTime create(LocalConfiguration localConfig, CloudConfiguration cloudConfig, ClientBuilder clientBuilder) { return new LaMetricTimeImpl(localConfig, cloudConfig, clientBuilder); } diff --git a/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/api/cloud/LaMetricTimeCloud.java b/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/api/cloud/LaMetricTimeCloud.java index 7a948a9a6..d9d113d26 100644 --- a/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/api/cloud/LaMetricTimeCloud.java +++ b/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/api/cloud/LaMetricTimeCloud.java @@ -26,15 +26,15 @@ import org.openhab.binding.lametrictime.internal.api.cloud.impl.LaMetricTimeClou */ @NonNullByDefault public interface LaMetricTimeCloud { - public Icons getIcons(); + Icons getIcons(); - public Icons getIcons(IconFilter filter); + Icons getIcons(IconFilter filter); - public static LaMetricTimeCloud create(CloudConfiguration config) { + static LaMetricTimeCloud create(CloudConfiguration config) { return new LaMetricTimeCloudImpl(config); } - public static LaMetricTimeCloud create(CloudConfiguration config, ClientBuilder clientBuilder) { + static LaMetricTimeCloud create(CloudConfiguration config, ClientBuilder clientBuilder) { return new LaMetricTimeCloudImpl(config, clientBuilder); } } diff --git a/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/api/dto/ApiValue.java b/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/api/dto/ApiValue.java index a3f90e0bb..4716fec4b 100644 --- a/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/api/dto/ApiValue.java +++ b/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/api/dto/ApiValue.java @@ -18,9 +18,9 @@ package org.openhab.binding.lametrictime.internal.api.dto; * @author Gregory Moyer - Initial contribution */ public interface ApiValue { - public String toRaw(); + String toRaw(); - public static String raw(ApiValue value) { + static String raw(ApiValue value) { if (value == null) { return null; } diff --git a/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/api/local/LaMetricTimeLocal.java b/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/api/local/LaMetricTimeLocal.java index 72bce6484..df8b98643 100644 --- a/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/api/local/LaMetricTimeLocal.java +++ b/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/api/local/LaMetricTimeLocal.java @@ -38,55 +38,55 @@ import org.openhab.binding.lametrictime.internal.api.local.impl.LaMetricTimeLoca */ @NonNullByDefault public interface LaMetricTimeLocal { - public Api getApi(); + Api getApi(); - public Device getDevice(); + Device getDevice(); - public String createNotification(Notification notification) throws NotificationCreationException; + String createNotification(Notification notification) throws NotificationCreationException; - public List getNotifications(); + List getNotifications(); - public @Nullable Notification getCurrentNotification(); + @Nullable + Notification getCurrentNotification(); - public Notification getNotification(String id) throws NotificationNotFoundException; + Notification getNotification(String id) throws NotificationNotFoundException; - public void deleteNotification(String id) throws NotificationNotFoundException; + void deleteNotification(String id) throws NotificationNotFoundException; - public Display getDisplay(); + Display getDisplay(); - public Display updateDisplay(Display display) throws UpdateException; + Display updateDisplay(Display display) throws UpdateException; - public Audio getAudio(); + Audio getAudio(); - public Audio updateAudio(Audio audio) throws UpdateException; + Audio updateAudio(Audio audio) throws UpdateException; - public Bluetooth getBluetooth(); + Bluetooth getBluetooth(); - public Bluetooth updateBluetooth(Bluetooth bluetooth) throws UpdateException; + Bluetooth updateBluetooth(Bluetooth bluetooth) throws UpdateException; - public Wifi getWifi(); + Wifi getWifi(); - public void updateApplication(String packageName, String accessToken, WidgetUpdates widgetUpdates) - throws UpdateException; + void updateApplication(String packageName, String accessToken, WidgetUpdates widgetUpdates) throws UpdateException; - public SortedMap getApplications(); + SortedMap getApplications(); - public @Nullable Application getApplication(String packageName) throws ApplicationNotFoundException; + @Nullable + Application getApplication(String packageName) throws ApplicationNotFoundException; - public void activatePreviousApplication(); + void activatePreviousApplication(); - public void activateNextApplication(); + void activateNextApplication(); - public void activateApplication(String packageName, String widgetId) throws ApplicationActivationException; + void activateApplication(String packageName, String widgetId) throws ApplicationActivationException; - public void doAction(String packageName, String widgetId, @Nullable UpdateAction action) - throws ApplicationActionException; + void doAction(String packageName, String widgetId, @Nullable UpdateAction action) throws ApplicationActionException; - public static LaMetricTimeLocal create(LocalConfiguration config) { + static LaMetricTimeLocal create(LocalConfiguration config) { return new LaMetricTimeLocalImpl(config); } - public static LaMetricTimeLocal create(LocalConfiguration config, ClientBuilder clientBuilder) { + static LaMetricTimeLocal create(LocalConfiguration config, ClientBuilder clientBuilder) { return new LaMetricTimeLocalImpl(config, clientBuilder); } } diff --git a/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/handler/LaMetricTimeAppHandler.java b/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/handler/LaMetricTimeAppHandler.java index d984e55b0..2fb788318 100644 --- a/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/handler/LaMetricTimeAppHandler.java +++ b/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/handler/LaMetricTimeAppHandler.java @@ -29,5 +29,6 @@ public interface LaMetricTimeAppHandler { * * @return the {@link Widget} */ - public @Nullable Widget getWidget(); + @Nullable + Widget getWidget(); } diff --git a/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/dto/PacketHandler.java b/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/dto/PacketHandler.java index 2b28da3e9..1ae88280d 100644 --- a/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/dto/PacketHandler.java +++ b/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/dto/PacketHandler.java @@ -36,5 +36,5 @@ public interface PacketHandler { * @throws IllegalArgumentException when an empty packet could not be created or the data in the buffer * could not be parsed */ - public abstract T handle(ByteBuffer buf); + T handle(ByteBuffer buf); } diff --git a/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/listener/LifxPropertiesUpdateListener.java b/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/listener/LifxPropertiesUpdateListener.java index d799f9920..b990eb1c1 100644 --- a/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/listener/LifxPropertiesUpdateListener.java +++ b/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/listener/LifxPropertiesUpdateListener.java @@ -31,5 +31,5 @@ public interface LifxPropertiesUpdateListener { * * @param packet the updated properties */ - public void handlePropertiesUpdate(Map properties); + void handlePropertiesUpdate(Map properties); } diff --git a/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/listener/LifxResponsePacketListener.java b/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/listener/LifxResponsePacketListener.java index 5d9394c83..f08db5673 100644 --- a/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/listener/LifxResponsePacketListener.java +++ b/bundles/org.openhab.binding.lifx/src/main/java/org/openhab/binding/lifx/internal/listener/LifxResponsePacketListener.java @@ -30,5 +30,5 @@ public interface LifxResponsePacketListener { * * @param packet the received packet */ - public void handleResponsePacket(Packet packet); + void handleResponsePacket(Packet packet); } diff --git a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/KeypadComponent.java b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/KeypadComponent.java index 7a49706bb..2f2b85ff7 100644 --- a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/KeypadComponent.java +++ b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/KeypadComponent.java @@ -24,11 +24,11 @@ import org.openhab.binding.lutron.internal.discovery.project.ComponentType; @NonNullByDefault public interface KeypadComponent { - public int id(); + int id(); - public String channel(); + String channel(); - public String description(); + String description(); - public ComponentType type(); + ComponentType type(); } diff --git a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/grxprg/SocketSessionCallback.java b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/grxprg/SocketSessionCallback.java index 55e2d98b1..2537c3004 100644 --- a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/grxprg/SocketSessionCallback.java +++ b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/grxprg/SocketSessionCallback.java @@ -23,12 +23,12 @@ public interface SocketSessionCallback { * * @param response a non-null, possibly empty response */ - public void responseReceived(String response); + void responseReceived(String response); /** * Called when a command finished with an exception * * @param e a non-null exception */ - public void responseException(Exception e); + void responseException(Exception e); } diff --git a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/protocol/leap/LeapMessageParserCallbacks.java b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/protocol/leap/LeapMessageParserCallbacks.java index e67fe9bef..2018d9283 100644 --- a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/protocol/leap/LeapMessageParserCallbacks.java +++ b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/protocol/leap/LeapMessageParserCallbacks.java @@ -29,19 +29,19 @@ import org.openhab.binding.lutron.internal.protocol.leap.dto.ZoneStatus; @NonNullByDefault public interface LeapMessageParserCallbacks { - public void validMessageReceived(String communiqueType); + void validMessageReceived(String communiqueType); - public void handleEmptyButtonGroupDefinition(); + void handleEmptyButtonGroupDefinition(); - public void handleZoneUpdate(ZoneStatus zoneStatus); + void handleZoneUpdate(ZoneStatus zoneStatus); - public void handleGroupUpdate(int groupNumber, String occupancyStatus); + void handleGroupUpdate(int groupNumber, String occupancyStatus); - public void handleMultipleButtonGroupDefinition(List buttonGroupList); + void handleMultipleButtonGroupDefinition(List buttonGroupList); - public void handleMultipleDeviceDefintion(List deviceList); + void handleMultipleDeviceDefintion(List deviceList); - public void handleMultipleAreaDefinition(List areaList); + void handleMultipleAreaDefinition(List areaList); - public void handleMultipleOccupancyGroupDefinition(List oGroupList); + void handleMultipleOccupancyGroupDefinition(List oGroupList); } diff --git a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/radiora/RadioRAConnection.java b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/radiora/RadioRAConnection.java index 7d8052c72..c33c530aa 100644 --- a/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/radiora/RadioRAConnection.java +++ b/bundles/org.openhab.binding.lutron/src/main/java/org/openhab/binding/lutron/internal/radiora/RadioRAConnection.java @@ -23,11 +23,11 @@ import org.eclipse.jdt.annotation.NonNullByDefault; @NonNullByDefault public interface RadioRAConnection { - public void open(String portName, int baud) throws RadioRAConnectionException; + void open(String portName, int baud) throws RadioRAConnectionException; - public void disconnect(); + void disconnect(); - public void write(String command); + void write(String command); - public void setListener(RadioRAFeedbackListener listener); + void setListener(RadioRAFeedbackListener listener); } diff --git a/bundles/org.openhab.binding.meteostick/src/main/java/org/openhab/binding/meteostick/internal/handler/MeteostickEventListener.java b/bundles/org.openhab.binding.meteostick/src/main/java/org/openhab/binding/meteostick/internal/handler/MeteostickEventListener.java index f552a495f..3829d3e88 100644 --- a/bundles/org.openhab.binding.meteostick/src/main/java/org/openhab/binding/meteostick/internal/handler/MeteostickEventListener.java +++ b/bundles/org.openhab.binding.meteostick/src/main/java/org/openhab/binding/meteostick/internal/handler/MeteostickEventListener.java @@ -24,5 +24,5 @@ public interface MeteostickEventListener { * * @param data a line of data from the meteoStick */ - public void onDataReceived(String data[]); + void onDataReceived(String data[]); } diff --git a/bundles/org.openhab.binding.mielecloud/src/main/java/org/openhab/binding/mielecloud/internal/auth/OAuthTokenRefreshListener.java b/bundles/org.openhab.binding.mielecloud/src/main/java/org/openhab/binding/mielecloud/internal/auth/OAuthTokenRefreshListener.java index 6be27eb09..5074602d1 100644 --- a/bundles/org.openhab.binding.mielecloud/src/main/java/org/openhab/binding/mielecloud/internal/auth/OAuthTokenRefreshListener.java +++ b/bundles/org.openhab.binding.mielecloud/src/main/java/org/openhab/binding/mielecloud/internal/auth/OAuthTokenRefreshListener.java @@ -26,5 +26,5 @@ public interface OAuthTokenRefreshListener { * * @param accessToken The new access token. */ - public void onNewAccessToken(String accessToken); + void onNewAccessToken(String accessToken); } diff --git a/bundles/org.openhab.binding.mielecloud/src/main/java/org/openhab/binding/mielecloud/internal/auth/OAuthTokenRefresher.java b/bundles/org.openhab.binding.mielecloud/src/main/java/org/openhab/binding/mielecloud/internal/auth/OAuthTokenRefresher.java index 13c095008..f8c83f9db 100644 --- a/bundles/org.openhab.binding.mielecloud/src/main/java/org/openhab/binding/mielecloud/internal/auth/OAuthTokenRefresher.java +++ b/bundles/org.openhab.binding.mielecloud/src/main/java/org/openhab/binding/mielecloud/internal/auth/OAuthTokenRefresher.java @@ -33,14 +33,14 @@ public interface OAuthTokenRefresher { * @throws OAuthException if the listener needs to be registered at an underlying service which is not available * because the account has not yet been authorized */ - public void setRefreshListener(OAuthTokenRefreshListener listener, String serviceHandle); + void setRefreshListener(OAuthTokenRefreshListener listener, String serviceHandle); /** * Unsets a listener. * * @param serviceHandle The service handle identifying the internal OAuth configuration. */ - public void unsetRefreshListener(String serviceHandle); + void unsetRefreshListener(String serviceHandle); /** * Refreshes the access and refresh tokens for the given service handle. If an {@link OAuthTokenRefreshListener} is @@ -52,7 +52,7 @@ public interface OAuthTokenRefresher { * @param serviceHandle The service handle identifying the internal OAuth configuration. * @throws OAuthException if the token cannot be obtained or refreshed */ - public void refreshToken(String serviceHandle); + void refreshToken(String serviceHandle); /** * Gets the currently stored access token from persistent storage. @@ -60,7 +60,7 @@ public interface OAuthTokenRefresher { * @param serviceHandle The service handle identifying the internal OAuth configuration. * @return The currently stored access token or an empty {@link Optional} if there is no stored token. */ - public Optional getAccessTokenFromStorage(String serviceHandle); + Optional getAccessTokenFromStorage(String serviceHandle); /** * Removes the tokens from persistent storage. @@ -70,5 +70,5 @@ public interface OAuthTokenRefresher { * * @param serviceHandle The service handle identifying the internal OAuth configuration. */ - public void removeTokensFromStorage(String serviceHandle); + void removeTokensFromStorage(String serviceHandle); } diff --git a/bundles/org.openhab.binding.mielecloud/src/main/java/org/openhab/binding/mielecloud/internal/webservice/MieleWebserviceFactory.java b/bundles/org.openhab.binding.mielecloud/src/main/java/org/openhab/binding/mielecloud/internal/webservice/MieleWebserviceFactory.java index f002e61b2..aa29b32ab 100644 --- a/bundles/org.openhab.binding.mielecloud/src/main/java/org/openhab/binding/mielecloud/internal/webservice/MieleWebserviceFactory.java +++ b/bundles/org.openhab.binding.mielecloud/src/main/java/org/openhab/binding/mielecloud/internal/webservice/MieleWebserviceFactory.java @@ -27,5 +27,5 @@ public interface MieleWebserviceFactory { * @param configuration The configuration holding all required parameters to construct the instance. * @return A new {@link MieleWebservice}. */ - public MieleWebservice create(MieleWebserviceConfiguration configuration); + MieleWebservice create(MieleWebserviceConfiguration configuration); } diff --git a/bundles/org.openhab.binding.modbus.e3dc/src/main/java/org/openhab/binding/modbus/e3dc/internal/modbus/Data.java b/bundles/org.openhab.binding.modbus.e3dc/src/main/java/org/openhab/binding/modbus/e3dc/internal/modbus/Data.java index b5ea957ea..74fed90d1 100644 --- a/bundles/org.openhab.binding.modbus.e3dc/src/main/java/org/openhab/binding/modbus/e3dc/internal/modbus/Data.java +++ b/bundles/org.openhab.binding.modbus.e3dc/src/main/java/org/openhab/binding/modbus/e3dc/internal/modbus/Data.java @@ -21,7 +21,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault; */ @NonNullByDefault public interface Data { - public enum DataType { + enum DataType { INFO, POWER, WALLBOX, diff --git a/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/discovery/ModbusDiscoveryListener.java b/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/discovery/ModbusDiscoveryListener.java index 50ef88d83..a3de3c28d 100644 --- a/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/discovery/ModbusDiscoveryListener.java +++ b/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/discovery/ModbusDiscoveryListener.java @@ -34,12 +34,12 @@ public interface ModbusDiscoveryListener { * Discovery participant should call this method when a new * thing has been discovered */ - public void thingDiscovered(DiscoveryResult result); + void thingDiscovered(DiscoveryResult result); /** * This method should be called once the discovery has been finished * or aborted by any error. * It is important to call this even when there were no things discovered. */ - public void discoveryFinished(); + void discoveryFinished(); } diff --git a/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/discovery/ModbusDiscoveryParticipant.java b/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/discovery/ModbusDiscoveryParticipant.java index 9a6540ae8..954c3f80a 100644 --- a/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/discovery/ModbusDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/discovery/ModbusDiscoveryParticipant.java @@ -37,12 +37,12 @@ public interface ModbusDiscoveryParticipant { * * @return a set of thing type UIDs for which results can be created */ - public Set getSupportedThingTypeUIDs(); + Set getSupportedThingTypeUIDs(); /** * Start an asynchronous discovery process of a Modbus endpoint * * @param handler the endpoint that should be discovered */ - public void startDiscovery(ModbusEndpointThingHandler handler, ModbusDiscoveryListener listener); + void startDiscovery(ModbusEndpointThingHandler handler, ModbusDiscoveryListener listener); } diff --git a/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/discovery/internal/ModbusThingHandlerDiscoveryService.java b/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/discovery/internal/ModbusThingHandlerDiscoveryService.java index 772d1bb64..c2d01e183 100644 --- a/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/discovery/internal/ModbusThingHandlerDiscoveryService.java +++ b/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/discovery/internal/ModbusThingHandlerDiscoveryService.java @@ -32,12 +32,12 @@ public interface ModbusThingHandlerDiscoveryService extends ThingHandlerService * @param service the discovery service that should be called when the discovery is finished * @return returns true if discovery is enabled, false otherwise */ - public boolean startScan(ModbusDiscoveryService service); + boolean startScan(ModbusDiscoveryService service); /** * This method should return true, if an async scan is in progress * * @return true if a scan is in progress false otherwise */ - public boolean scanInProgress(); + boolean scanInProgress(); } diff --git a/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/handler/ModbusEndpointThingHandler.java b/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/handler/ModbusEndpointThingHandler.java index 4823a9e8d..c2345a05c 100644 --- a/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/handler/ModbusEndpointThingHandler.java +++ b/bundles/org.openhab.binding.modbus/src/main/java/org/openhab/binding/modbus/handler/ModbusEndpointThingHandler.java @@ -34,7 +34,8 @@ public interface ModbusEndpointThingHandler extends Identifiable { * * @return communication interface represented by this thing handler */ - public @Nullable ModbusCommunicationInterface getCommunicationInterface(); + @Nullable + ModbusCommunicationInterface getCommunicationInterface(); /** * Get Slave ID, also called as unit id, represented by the thing @@ -42,12 +43,12 @@ public interface ModbusEndpointThingHandler extends Identifiable { * @return slave id represented by this thing handler * @throws EndpointNotInitializedException in case the initialization is not complete */ - public int getSlaveId() throws EndpointNotInitializedException; + int getSlaveId() throws EndpointNotInitializedException; /** * Return true if auto discovery is enabled for this endpoint * * @return boolean true if the discovery is enabled */ - public boolean isDiscoveryEnabled(); + boolean isDiscoveryEnabled(); } diff --git a/bundles/org.openhab.binding.monopriceaudio/src/main/java/org/openhab/binding/monopriceaudio/internal/communication/MonopriceAudioMessageEventListener.java b/bundles/org.openhab.binding.monopriceaudio/src/main/java/org/openhab/binding/monopriceaudio/internal/communication/MonopriceAudioMessageEventListener.java index 99d900553..f603cbc0d 100644 --- a/bundles/org.openhab.binding.monopriceaudio/src/main/java/org/openhab/binding/monopriceaudio/internal/communication/MonopriceAudioMessageEventListener.java +++ b/bundles/org.openhab.binding.monopriceaudio/src/main/java/org/openhab/binding/monopriceaudio/internal/communication/MonopriceAudioMessageEventListener.java @@ -29,5 +29,5 @@ public interface MonopriceAudioMessageEventListener extends EventListener { * * @param event the MonopriceAudioMessageEvent */ - public void onNewMessageEvent(MonopriceAudioMessageEvent event); + void onNewMessageEvent(MonopriceAudioMessageEvent event); } diff --git a/bundles/org.openhab.binding.mqtt.generic/src/main/java/org/openhab/binding/mqtt/generic/AvailabilityTracker.java b/bundles/org.openhab.binding.mqtt.generic/src/main/java/org/openhab/binding/mqtt/generic/AvailabilityTracker.java index 3fec48985..9aa544a27 100644 --- a/bundles/org.openhab.binding.mqtt.generic/src/main/java/org/openhab/binding/mqtt/generic/AvailabilityTracker.java +++ b/bundles/org.openhab.binding.mqtt.generic/src/main/java/org/openhab/binding/mqtt/generic/AvailabilityTracker.java @@ -32,7 +32,7 @@ public interface AvailabilityTracker { * @param payload_available * @param payload_not_available */ - public void addAvailabilityTopic(String availability_topic, String payload_available, String payload_not_available); + void addAvailabilityTopic(String availability_topic, String payload_available, String payload_not_available); /** * Adds an availability topic to determine the availability of a device. @@ -47,18 +47,18 @@ public interface AvailabilityTracker { * @param transformationServiceProvider The service provider to obtain the transformation service (required only if * transformation_pattern is not null). */ - public void addAvailabilityTopic(String availability_topic, String payload_available, String payload_not_available, + void addAvailabilityTopic(String availability_topic, String payload_available, String payload_not_available, @Nullable String transformation_pattern, @Nullable TransformationServiceProvider transformationServiceProvider); - public void removeAvailabilityTopic(String availability_topic); + void removeAvailabilityTopic(String availability_topic); - public void clearAllAvailabilityTopics(); + void clearAllAvailabilityTopics(); /** * resets the indicator, if messages have been received. *

* This is used to time out the availability of the device after some time without receiving a message. */ - public void resetMessageReceived(); + void resetMessageReceived(); } diff --git a/bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/handler/ByteResponseCallback.java b/bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/handler/ByteResponseCallback.java index a74d0b0b9..14712a14d 100644 --- a/bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/handler/ByteResponseCallback.java +++ b/bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/handler/ByteResponseCallback.java @@ -22,5 +22,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault; @NonNullByDefault public interface ByteResponseCallback extends ResponseCallback { - public void onResponse(byte[] result); + void onResponse(byte[] result); } diff --git a/bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/handler/ResponseCallback.java b/bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/handler/ResponseCallback.java index 5dcd1e0ae..951e79a51 100644 --- a/bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/handler/ResponseCallback.java +++ b/bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/handler/ResponseCallback.java @@ -22,5 +22,5 @@ import org.openhab.binding.mybmw.internal.dto.network.NetworkError; */ @NonNullByDefault public interface ResponseCallback { - public void onError(NetworkError error); + void onError(NetworkError error); } diff --git a/bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/handler/StringResponseCallback.java b/bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/handler/StringResponseCallback.java index 80fbeea17..cf863ae36 100644 --- a/bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/handler/StringResponseCallback.java +++ b/bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/handler/StringResponseCallback.java @@ -23,5 +23,5 @@ import org.eclipse.jdt.annotation.Nullable; @NonNullByDefault public interface StringResponseCallback extends ResponseCallback { - public void onResponse(@Nullable String result); + void onResponse(@Nullable String result); } diff --git a/bundles/org.openhab.binding.mycroft/src/main/java/org/openhab/binding/mycroft/internal/channels/ChannelCommandHandler.java b/bundles/org.openhab.binding.mycroft/src/main/java/org/openhab/binding/mycroft/internal/channels/ChannelCommandHandler.java index 3b4214dd3..d7179d34b 100644 --- a/bundles/org.openhab.binding.mycroft/src/main/java/org/openhab/binding/mycroft/internal/channels/ChannelCommandHandler.java +++ b/bundles/org.openhab.binding.mycroft/src/main/java/org/openhab/binding/mycroft/internal/channels/ChannelCommandHandler.java @@ -23,5 +23,5 @@ import org.openhab.core.types.Command; @NonNullByDefault public interface ChannelCommandHandler { - public void handleCommand(Command command); + void handleCommand(Command command); } diff --git a/bundles/org.openhab.binding.mynice/src/main/java/org/openhab/binding/mynice/internal/handler/MyNiceDataListener.java b/bundles/org.openhab.binding.mynice/src/main/java/org/openhab/binding/mynice/internal/handler/MyNiceDataListener.java index aa2112c0c..55d72769a 100644 --- a/bundles/org.openhab.binding.mynice/src/main/java/org/openhab/binding/mynice/internal/handler/MyNiceDataListener.java +++ b/bundles/org.openhab.binding.mynice/src/main/java/org/openhab/binding/mynice/internal/handler/MyNiceDataListener.java @@ -26,5 +26,5 @@ import org.openhab.binding.mynice.internal.xml.dto.Device; @NonNullByDefault public interface MyNiceDataListener { - public void onDataFetched(List devices); + void onDataFetched(List devices); } diff --git a/bundles/org.openhab.binding.myq/src/main/java/org/openhab/binding/myq/internal/handler/MyQDeviceHandler.java b/bundles/org.openhab.binding.myq/src/main/java/org/openhab/binding/myq/internal/handler/MyQDeviceHandler.java index 2a3862784..b216daa4c 100644 --- a/bundles/org.openhab.binding.myq/src/main/java/org/openhab/binding/myq/internal/handler/MyQDeviceHandler.java +++ b/bundles/org.openhab.binding.myq/src/main/java/org/openhab/binding/myq/internal/handler/MyQDeviceHandler.java @@ -22,7 +22,7 @@ import org.openhab.binding.myq.internal.dto.DeviceDTO; */ @NonNullByDefault public interface MyQDeviceHandler { - public void handleDeviceUpdate(DeviceDTO device); + void handleDeviceUpdate(DeviceDTO device); - public String getSerialNumber(); + String getSerialNumber(); } diff --git a/bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/api/dto/LocationEx.java b/bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/api/dto/LocationEx.java index f018719f8..d57950bcd 100644 --- a/bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/api/dto/LocationEx.java +++ b/bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/api/dto/LocationEx.java @@ -24,7 +24,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault; */ @NonNullByDefault public interface LocationEx extends Location { - public Optional getCountry(); + Optional getCountry(); - public Optional getTimezone(); + Optional getTimezone(); } diff --git a/bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/api/dto/NAModule.java b/bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/api/dto/NAModule.java index b57874f8b..64b544da6 100644 --- a/bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/api/dto/NAModule.java +++ b/bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/api/dto/NAModule.java @@ -24,9 +24,10 @@ import org.openhab.binding.netatmo.internal.api.data.ModuleType; */ @NonNullByDefault public interface NAModule { - public String getId(); + String getId(); - public @Nullable String getName(); + @Nullable + String getName(); - public ModuleType getType(); + ModuleType getType(); } diff --git a/bundles/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/PresenceDetectionListener.java b/bundles/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/PresenceDetectionListener.java index d8287da76..125159f94 100644 --- a/bundles/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/PresenceDetectionListener.java +++ b/bundles/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/PresenceDetectionListener.java @@ -30,7 +30,7 @@ public interface PresenceDetectionListener { * A partial result always means that the device is reachable, but not * all methods have returned a value yet. */ - public void partialDetectionResult(PresenceDetectionValue value); + void partialDetectionResult(PresenceDetectionValue value); /** * This method is called by the {@see PresenceDetectionService} @@ -39,5 +39,5 @@ public interface PresenceDetectionListener { * * @param value The final result of the presence detection process. */ - public void finalDetectionResult(PresenceDetectionValue value); + void finalDetectionResult(PresenceDetectionValue value); } diff --git a/bundles/org.openhab.binding.nibeuplink/src/main/java/org/openhab/binding/nibeuplink/internal/command/NibeUplinkCommand.java b/bundles/org.openhab.binding.nibeuplink/src/main/java/org/openhab/binding/nibeuplink/internal/command/NibeUplinkCommand.java index 86d28bbb0..e6553fd78 100644 --- a/bundles/org.openhab.binding.nibeuplink/src/main/java/org/openhab/binding/nibeuplink/internal/command/NibeUplinkCommand.java +++ b/bundles/org.openhab.binding.nibeuplink/src/main/java/org/openhab/binding/nibeuplink/internal/command/NibeUplinkCommand.java @@ -28,7 +28,7 @@ import org.openhab.binding.nibeuplink.internal.connector.StatusUpdateListener; @NonNullByDefault public interface NibeUplinkCommand extends SuccessListener, FailureListener, ContentListener, CompleteListener { - public static int MAX_RETRIES = 5; + static int MAX_RETRIES = 5; /** * this method is to be called by the UplinkWebinterface class diff --git a/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcActionEvent.java b/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcActionEvent.java index eb97cc7c8..77d9f532a 100644 --- a/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcActionEvent.java +++ b/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcActionEvent.java @@ -30,17 +30,17 @@ public interface NhcActionEvent { * * @param state */ - public void actionEvent(int state); + void actionEvent(int state); /** * Called to indicate the action has been initialized. * */ - public void actionInitialized(); + void actionInitialized(); /** * Called to indicate the action has been removed from the Niko Home Control controller. * */ - public void actionRemoved(); + void actionRemoved(); } diff --git a/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcControllerEvent.java b/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcControllerEvent.java index 6886b5fd2..53aa8d421 100644 --- a/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcControllerEvent.java +++ b/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcControllerEvent.java @@ -34,7 +34,7 @@ public interface NhcControllerEvent { * * @return the addr */ - public default @Nullable InetAddress getAddr() { + default @Nullable InetAddress getAddr() { return null; } @@ -43,7 +43,7 @@ public interface NhcControllerEvent { * * @return the port */ - public default int getPort() { + default int getPort() { return 0; } @@ -52,7 +52,7 @@ public interface NhcControllerEvent { * * @return the profile */ - public default String getProfile() { + default String getProfile() { return ""; } @@ -61,7 +61,7 @@ public interface NhcControllerEvent { * * @return the token */ - public default String getToken() { + default String getToken() { return ""; } @@ -70,37 +70,37 @@ public interface NhcControllerEvent { * * @return the zone ID */ - public ZoneId getTimeZone(); + ZoneId getTimeZone(); /** * Called to indicate the connection with the Niko Home Control Controller is offline. * * @param message */ - public void controllerOffline(String message); + void controllerOffline(String message); /** * Called to indicate the connection with the Niko Home Control Controller is online. * */ - public void controllerOnline(); + void controllerOnline(); /** * This method is called when an alarm event is received from the Niko Home Control controller. * * @param alarmText */ - public void alarmEvent(String alarmText); + void alarmEvent(String alarmText); /** * This method is called when a notice event is received from the Niko Home Control controller. * * @param alarmText */ - public void noticeEvent(String noticeText); + void noticeEvent(String noticeText); /** * This method is called when properties are updated from the Niko Home Control controller. */ - public void updatePropertiesEvent(); + void updatePropertiesEvent(); } diff --git a/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcEnergyMeterEvent.java b/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcEnergyMeterEvent.java index b58d31afb..8ab40a9a4 100644 --- a/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcEnergyMeterEvent.java +++ b/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcEnergyMeterEvent.java @@ -32,17 +32,17 @@ public interface NhcEnergyMeterEvent { * * @param power current power consumption/production in W (positive for consumption), null for an empty reading */ - public void energyMeterEvent(@Nullable Integer power); + void energyMeterEvent(@Nullable Integer power); /** * Called to indicate the energyMeter has been initialized. * */ - public void energyMeterInitialized(); + void energyMeterInitialized(); /** * Called to indicate the energyMeter has been removed from the Niko Home Control controller. * */ - public void energyMeterRemoved(); + void energyMeterRemoved(); } diff --git a/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcThermostatEvent.java b/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcThermostatEvent.java index 58866f618..75a38212d 100644 --- a/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcThermostatEvent.java +++ b/bundles/org.openhab.binding.nikohomecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcThermostatEvent.java @@ -35,17 +35,17 @@ public interface NhcThermostatEvent { * @param overrule the overrule temperature in 0.1°C multiples * @param demand 0 if no demand, > 0 if heating, < 0 if cooling */ - public void thermostatEvent(int measured, int setpoint, int mode, int overrule, int demand); + void thermostatEvent(int measured, int setpoint, int mode, int overrule, int demand); /** * Called to indicate the thermostat has been initialized. * */ - public void thermostatInitialized(); + void thermostatInitialized(); /** * Called to indicate the thermostat has been removed from the Niko Home Control controller. * */ - public void thermostatRemoved(); + void thermostatRemoved(); } diff --git a/bundles/org.openhab.binding.nuvo/src/main/java/org/openhab/binding/nuvo/internal/communication/NuvoMessageEventListener.java b/bundles/org.openhab.binding.nuvo/src/main/java/org/openhab/binding/nuvo/internal/communication/NuvoMessageEventListener.java index 54cb81ea4..684abbebe 100644 --- a/bundles/org.openhab.binding.nuvo/src/main/java/org/openhab/binding/nuvo/internal/communication/NuvoMessageEventListener.java +++ b/bundles/org.openhab.binding.nuvo/src/main/java/org/openhab/binding/nuvo/internal/communication/NuvoMessageEventListener.java @@ -29,5 +29,5 @@ public interface NuvoMessageEventListener extends EventListener { * * @param event the NuvoMessageEvent object */ - public void onNewMessageEvent(NuvoMessageEvent event); + void onNewMessageEvent(NuvoMessageEvent event); } diff --git a/bundles/org.openhab.binding.opensprinkler/src/main/java/org/openhab/binding/opensprinkler/internal/api/OpenSprinklerApi.java b/bundles/org.openhab.binding.opensprinkler/src/main/java/org/openhab/binding/opensprinkler/internal/api/OpenSprinklerApi.java index 9e149136e..eace11a85 100644 --- a/bundles/org.openhab.binding.opensprinkler/src/main/java/org/openhab/binding/opensprinkler/internal/api/OpenSprinklerApi.java +++ b/bundles/org.openhab.binding.opensprinkler/src/main/java/org/openhab/binding/opensprinkler/internal/api/OpenSprinklerApi.java @@ -42,21 +42,21 @@ public interface OpenSprinklerApi { * * @return True if this API interface is connected to the Open Sprinkler API. False otherwise. */ - public abstract boolean isManualModeEnabled(); + boolean isManualModeEnabled(); /** * Enters the "manual" mode of the device so that API requests are accepted. * * @throws Exception */ - public abstract void enterManualMode() throws CommunicationApiException, UnauthorizedApiException; + void enterManualMode() throws CommunicationApiException, UnauthorizedApiException; /** * Disables the manual mode, if it is enabled. * * @throws Exception */ - public abstract void leaveManualMode() throws CommunicationApiException, UnauthorizedApiException; + void leaveManualMode() throws CommunicationApiException, UnauthorizedApiException; /** * Starts a station on the OpenSprinkler device for the specified duration. @@ -65,8 +65,7 @@ public interface OpenSprinklerApi { * @param duration The duration in seconds for how long the station should be turned on. * @throws Exception */ - public abstract void openStation(int station, BigDecimal duration) - throws CommunicationApiException, GeneralApiException; + void openStation(int station, BigDecimal duration) throws CommunicationApiException, GeneralApiException; /** * Closes a station on the OpenSprinkler device. @@ -74,7 +73,7 @@ public interface OpenSprinklerApi { * @param station Index of the station to open starting at 0. * @throws Exception */ - public abstract void closeStation(int station) throws CommunicationApiException, GeneralApiException; + void closeStation(int station) throws CommunicationApiException, GeneralApiException; /** * Returns the state of a station on the OpenSprinkler device. @@ -83,7 +82,7 @@ public interface OpenSprinklerApi { * @return True if the station is open, false if it is closed or cannot determine. * @throws Exception */ - public abstract boolean isStationOpen(int station) throws CommunicationApiException, GeneralApiException; + boolean isStationOpen(int station) throws CommunicationApiException, GeneralApiException; /** * Returns the current program data of the requested station. @@ -92,7 +91,7 @@ public interface OpenSprinklerApi { * @return StationProgram * @throws Exception */ - public abstract StationProgram retrieveProgram(int station) throws CommunicationApiException; + StationProgram retrieveProgram(int station) throws CommunicationApiException; /** * Returns the state of rain detection on the OpenSprinkler device. @@ -100,55 +99,55 @@ public interface OpenSprinklerApi { * @return True if rain is detected, false if not or cannot determine. * @throws Exception */ - public abstract boolean isRainDetected(); + boolean isRainDetected(); /** * Returns the current draw of all connected zones of the OpenSprinkler device in milliamperes. * * @return current draw in milliamperes or -1 if sensor not supported */ - public abstract int currentDraw(); + int currentDraw(); /** * Returns the state of the second sensor. * * @return 1: sensor is active; 0: sensor is inactive; -1: no sensor. */ - public abstract int getSensor2State(); + int getSensor2State(); /** * * @return The Wifi signal strength in -dB or 0 if not supported by firmware */ - public abstract int signalStrength(); + int signalStrength(); /** * * @return The pulses that the flow sensor has given in the last time period, -1 if not supported. */ - public abstract int flowSensorCount(); + int flowSensorCount(); /** * CLOSES all stations turning them all off. * */ - public abstract void resetStations() throws UnauthorizedApiException, CommunicationApiException; + void resetStations() throws UnauthorizedApiException, CommunicationApiException; /** * Returns true if the internal programs are allowed to auto start. * * @return true if enabled */ - public abstract boolean getIsEnabled(); + boolean getIsEnabled(); - public abstract void enablePrograms(Command command) throws UnauthorizedApiException, CommunicationApiException; + void enablePrograms(Command command) throws UnauthorizedApiException, CommunicationApiException; /** * Returns the water level in %. * * @return waterLevel in % */ - public abstract int waterLevel(); + int waterLevel(); /** * Returns the number of total stations that are controllable from the OpenSprinkler @@ -156,7 +155,7 @@ public interface OpenSprinklerApi { * * @return Number of stations as an int. */ - public abstract int getNumberOfStations(); + int getNumberOfStations(); /** * Returns the firmware version number. @@ -164,7 +163,7 @@ public interface OpenSprinklerApi { * @return The firmware version of the OpenSprinkler device as an int. * @throws Exception */ - public abstract int getFirmwareVersion() throws CommunicationApiException, UnauthorizedApiException; + int getFirmwareVersion() throws CommunicationApiException, UnauthorizedApiException; /** * Sends all the GET requests and stores/cache the responses for use by the API to prevent the need for multiple @@ -173,7 +172,7 @@ public interface OpenSprinklerApi { * @throws CommunicationApiException * @throws UnauthorizedApiException */ - public abstract void refresh() throws CommunicationApiException, UnauthorizedApiException; + void refresh() throws CommunicationApiException, UnauthorizedApiException; /** * Ask the OpenSprinkler for the program names and store these for future use in a List. @@ -181,21 +180,21 @@ public interface OpenSprinklerApi { * @throws CommunicationApiException * @throws UnauthorizedApiException */ - public abstract void getProgramData() throws CommunicationApiException, UnauthorizedApiException; + void getProgramData() throws CommunicationApiException, UnauthorizedApiException; /** * Returns a list of all internal programs as a list of StateOptions. * * @return List */ - public abstract List getPrograms(); + List getPrograms(); /** * Return a list of all the stations the device has as List of StateOptions * * @return List */ - public abstract List getStations(); + List getStations(); /** * Runs a Program that is setup and stored inside the OpenSprinkler @@ -205,7 +204,7 @@ public interface OpenSprinklerApi { * @throws CommunicationApiException * @throws UnauthorizedApiException */ - public abstract void runProgram(Command command) throws CommunicationApiException, UnauthorizedApiException; + void runProgram(Command command) throws CommunicationApiException, UnauthorizedApiException; /** * Fetch the station names and place them in a list of List. @@ -214,7 +213,7 @@ public interface OpenSprinklerApi { * @throws CommunicationApiException * @throws UnauthorizedApiException */ - public abstract JnResponse getStationNames() throws CommunicationApiException, UnauthorizedApiException; + JnResponse getStationNames() throws CommunicationApiException, UnauthorizedApiException; /** * Tells a single station to ignore the rain delay. @@ -224,7 +223,7 @@ public interface OpenSprinklerApi { * @throws CommunicationApiException * @throws UnauthorizedApiException */ - public void ignoreRain(int station, boolean command) throws CommunicationApiException, UnauthorizedApiException; + void ignoreRain(int station, boolean command) throws CommunicationApiException, UnauthorizedApiException; /** * Asks if a single station is set to ignore rain delays. @@ -232,7 +231,7 @@ public interface OpenSprinklerApi { * @param station * @return */ - public abstract boolean isIgnoringRain(int station); + boolean isIgnoringRain(int station); /** * Sets how long the OpenSprinkler device will stop running programs for. @@ -241,12 +240,12 @@ public interface OpenSprinklerApi { * @throws UnauthorizedApiException * @throws CommunicationApiException */ - public abstract void setRainDelay(int hours) throws UnauthorizedApiException, CommunicationApiException; + void setRainDelay(int hours) throws UnauthorizedApiException, CommunicationApiException; /** * Gets the rain delay in hours from the OpenSprinkler device. * * @return QuantityType