Remove redundant modifiers from interfaces (#14843)
Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user