Remove redundant modifiers from interfaces (#14843)
Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -21,5 +21,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
@NonNullByDefault
|
||||
public interface GattMessage {
|
||||
|
||||
public byte[] getPayload();
|
||||
byte[] getPayload();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
@NonNullByDefault
|
||||
public interface MessageSupplier<M extends GattMessage> {
|
||||
|
||||
public M createMessage();
|
||||
M createMessage();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user