Remove redundant modifiers from interfaces (#14843)

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born
2023-04-18 13:07:04 +02:00
committed by GitHub
parent 24adc5aa12
commit 83cbe746d0
174 changed files with 806 additions and 774 deletions

View File

@@ -32,30 +32,30 @@ public interface GardenaSmart {
/**
* Disposes Gardena smart system.
*/
public void dispose();
void dispose();
/**
* Returns all devices from all locations.
*/
public Collection<Device> getAllDevices();
Collection<Device> 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();
}

View File

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