ServerSocketChannel throws IOException, not Exception

This commit is contained in:
Joel Dice 2010-10-13 13:38:31 -06:00
parent ca251dfa17
commit b3accf1b30

View File

@ -40,7 +40,7 @@ public class ServerSocketChannel extends SelectableChannel {
channel.close();
}
public SocketChannel accept() throws Exception {
public SocketChannel accept() throws IOException {
SocketChannel c = new SocketChannel();
c.socket = doAccept();
c.connected = true;