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

@@ -37,7 +37,7 @@ public interface BluetoothDiscoveryParticipant {
*
* @return a set of thing type UIDs for which results can be created
*/
public Set<ThingTypeUID> getSupportedThingTypeUIDs();
Set<ThingTypeUID> getSupportedThingTypeUIDs();
/**
* Creates a discovery result for a Bluetooth device
@@ -46,7 +46,8 @@ public interface BluetoothDiscoveryParticipant {
* @return the according discovery result or <code>null</code>, 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 <code>null</code>, 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<BluetoothAdapter, DiscoveryResult> 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;
}
}