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

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

View File

@@ -37,12 +37,12 @@ public interface ModbusDiscoveryParticipant {
*
* @return a set of thing type UIDs for which results can be created
*/
public Set<ThingTypeUID> getSupportedThingTypeUIDs();
Set<ThingTypeUID> 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);
}

View File

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

View File

@@ -34,7 +34,8 @@ public interface ModbusEndpointThingHandler extends Identifiable<ThingUID> {
*
* @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<ThingUID> {
* @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();
}