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

@@ -29,27 +29,27 @@ public interface RegoConnection {
* Connect to the receiver. Return true if the connection has succeeded or if already connected.
*
**/
public void connect() throws IOException;
void connect() throws IOException;
/**
* Return true if this manager is connected to the AVR.
*
* @return
*/
public boolean isConnected();
boolean isConnected();
/**
* Closes the connection.
**/
public void close();
void close();
/**
* Returns an output stream for this connection.
*/
public OutputStream outputStream() throws IOException;
OutputStream outputStream() throws IOException;
/**
* Returns an input stream for this connection.
*/
public InputStream inputStream() throws IOException;
InputStream inputStream() throws IOException;
}

View File

@@ -21,7 +21,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
*/
@NonNullByDefault
public interface ResponseParser<T> {
public int responseLength();
int responseLength();
public T parse(byte[] buffer) throws Rego6xxProtocolException;
T parse(byte[] buffer) throws Rego6xxProtocolException;
}