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

@@ -21,5 +21,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault
public interface GattMessage {
public byte[] getPayload();
byte[] getPayload();
}

View File

@@ -26,12 +26,12 @@ public interface MessageHandler<T extends GattMessage, R extends GattMessage> {
* @param payload
* @return true if this handler should be removed from the handler list
*/
public boolean handleReceivedMessage(R message);
boolean handleReceivedMessage(R message);
/**
*
* @param payload
* @return true if this handler should be removed from the handler list
*/
public boolean handleFailedMessage(T message, Throwable th);
boolean handleFailedMessage(T message, Throwable th);
}

View File

@@ -24,5 +24,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
public interface MessageServicer<T extends GattMessage, R extends GattMessage>
extends MessageHandler<T, R>, MessageSupplier<T> {
public long getTimeout(TimeUnit unit);
long getTimeout(TimeUnit unit);
}

View File

@@ -21,5 +21,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault
public interface MessageSupplier<M extends GattMessage> {
public M createMessage();
M createMessage();
}