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

@@ -28,45 +28,45 @@ public interface PowermaxConnectorInterface {
/**
* Method for opening a connection to the Visonic alarm panel.
*/
public void open() throws Exception;
void open() throws Exception;
/**
* Method for closing a connection to the Visonic alarm panel.
*/
public void close();
void close();
/**
* Returns connection status
*
* @return: true if connected or false if not
**/
public boolean isConnected();
boolean isConnected();
/**
* Method for sending a message to the Visonic alarm panel
*
* @param data the message as a table of bytes
**/
public void sendMessage(byte[] data);
void sendMessage(byte[] data);
/**
* Method for reading data from the Visonic alarm panel
*
* @param buffer the buffer into which the data is read
**/
public int read(byte[] buffer) throws IOException;
int read(byte[] buffer) throws IOException;
/**
* Method for registering an event listener
*
* @param listener the listener to be registered
*/
public void addEventListener(PowermaxMessageEventListener listener);
void addEventListener(PowermaxMessageEventListener listener);
/**
* Method for removing an event listener
*
* @param listener the listener to be removed
*/
public void removeEventListener(PowermaxMessageEventListener listener);
void removeEventListener(PowermaxMessageEventListener listener);
}

View File

@@ -30,10 +30,10 @@ public interface PowermaxMessageEventListener extends EventListener {
*
* @param event the event object
*/
public void onNewMessageEvent(EventObject event);
void onNewMessageEvent(EventObject event);
/**
* Event handler method to indicate that communication has been lost
*/
public void onCommunicationFailure(String message);
void onCommunicationFailure(String message);
}

View File

@@ -30,7 +30,7 @@ public interface PowermaxPanelSettingsListener {
*
* @param settings the updated alarm panel settings or null if the panel settings are unknown
*/
public void onPanelSettingsUpdated(@Nullable PowermaxPanelSettings settings);
void onPanelSettingsUpdated(@Nullable PowermaxPanelSettings settings);
/**
* This method is called when the bridge thing handler identifies
@@ -39,5 +39,5 @@ public interface PowermaxPanelSettingsListener {
* @param zoneNumber the zone number
* @param settings the updated alarm panel settings or null if the panel settings are unknown
*/
public void onZoneSettingsUpdated(int zoneNumber, @Nullable PowermaxPanelSettings settings);
void onZoneSettingsUpdated(int zoneNumber, @Nullable PowermaxPanelSettings settings);
}

View File

@@ -30,10 +30,10 @@ public interface PowermaxStateEventListener extends EventListener {
*
* @param event the event object
*/
public void onNewStateEvent(EventObject event);
void onNewStateEvent(EventObject event);
/**
* Event handler method to indicate that communication has been lost
*/
public void onCommunicationFailure(String message);
void onCommunicationFailure(String message);
}