Skip to content

Commit 6327640

Browse files
author
Stephane Landelle
committed
No need for public modifier in an interface
1 parent ef86698 commit 6327640

File tree

1 file changed

+5
-5
lines changed
  • providers/netty/src/main/java/org/asynchttpclient/providers/netty/channel

1 file changed

+5
-5
lines changed

providers/netty/src/main/java/org/asynchttpclient/providers/netty/channel/ChannelPool.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,34 +27,34 @@ public interface ChannelPool {
2727
* @param connection an I/O connection
2828
* @return true if added.
2929
*/
30-
public boolean offer(String uri, Channel connection);
30+
boolean offer(String uri, Channel connection);
3131

3232
/**
3333
* Remove the connection associated with the uri.
3434
*
3535
* @param uri the uri used when invoking addConnection
3636
* @return the connection associated with the uri
3737
*/
38-
public Channel poll(String uri);
38+
Channel poll(String uri);
3939

4040
/**
4141
* Remove all connections from the cache. A connection might have been associated with several uri.
4242
*
4343
* @param connection a connection
4444
* @return the true if the connection has been removed
4545
*/
46-
public boolean removeAll(Channel connection);
46+
boolean removeAll(Channel connection);
4747

4848
/**
4949
* Return true if a connection can be cached. A implementation can decide based on some rules to allow caching
5050
* Calling this method is equivalent of checking the returned value of {@link ChannelPool#offer(Object, Object)}
5151
*
5252
* @return true if a connection can be cached.
5353
*/
54-
public boolean canCacheConnection();
54+
boolean canCacheConnection();
5555

5656
/**
5757
* Destroy all connections that has been cached by this instance.
5858
*/
59-
public void destroy();
59+
void destroy();
6060
}

0 commit comments

Comments
 (0)