diff --git a/apps/ministreaming/java/src/net/i2p/client/streaming/AcceptingChannel.java b/apps/ministreaming/java/src/net/i2p/client/streaming/AcceptingChannel.java index 7828f6989..3cf5949db 100644 --- a/apps/ministreaming/java/src/net/i2p/client/streaming/AcceptingChannel.java +++ b/apps/ministreaming/java/src/net/i2p/client/streaming/AcceptingChannel.java @@ -16,7 +16,7 @@ import java.nio.channels.SelectableChannel; */ public abstract class AcceptingChannel extends SelectableChannel { - public abstract I2PSocket accept() throws I2PException, ConnectException; + protected abstract I2PSocket accept() throws I2PException, ConnectException; protected final I2PSocketManager _socketManager; diff --git a/apps/streaming/java/src/net/i2p/client/streaming/impl/AcceptingChannelImpl.java b/apps/streaming/java/src/net/i2p/client/streaming/impl/AcceptingChannelImpl.java index a58d3c5fa..5fa96f372 100644 --- a/apps/streaming/java/src/net/i2p/client/streaming/impl/AcceptingChannelImpl.java +++ b/apps/streaming/java/src/net/i2p/client/streaming/impl/AcceptingChannelImpl.java @@ -33,7 +33,7 @@ class AcceptingChannelImpl extends AcceptingChannel { private volatile I2PSocket next; private final I2PServerSocket socket; - public I2PSocket accept() throws I2PException, ConnectException { + protected I2PSocket accept() throws I2PException, ConnectException { I2PSocket sock; try { sock = socket.accept();