Remove double and triple blank lines

This commit is contained in:
Peter Lawrey
2014-11-30 22:43:32 +02:00
parent 6dc1792f19
commit 6d4b143903
83 changed files with 9 additions and 621 deletions
@@ -39,7 +39,6 @@ import static java.net.StandardSocketOptions.SO_REUSEADDR;
import static java.nio.channels.SelectionKey.OP_READ;
import static java.nio.channels.SelectionKey.OP_WRITE;
/**
* The UdpReplicator attempts to read the data ( but it does not enforce or grantee delivery ),
* typically, you should use the UdpReplicator if you have a large number of nodes, and you wish to
@@ -85,7 +84,6 @@ class UdpChannelReplicator extends AbstractChannelReplicator implements Replica.
serverConnector = new ServerConnector();
}
void setWriter(EntryWriter writer) {
this.writer = writer;
}
@@ -169,7 +167,6 @@ class UdpChannelReplicator extends AbstractChannelReplicator implements Replica.
}
}
private DatagramChannel connectClient() throws IOException {
final DatagramChannel client = address.isMulticastAddress() ?
DatagramChannel.open(address.getAddress().length == 4 ? INET : INET6) :
@@ -240,7 +237,6 @@ class UdpChannelReplicator extends AbstractChannelReplicator implements Replica.
}
}
private class ServerConnector extends AbstractConnector {
private final InetSocketAddress socketAddress;
@@ -293,12 +289,10 @@ class UdpChannelReplicator extends AbstractChannelReplicator implements Replica.
return server;
}
}
}
interface EntryReader {
void readAll(@NotNull final DatagramChannel socketChannel) throws IOException, InterruptedException;
}
@@ -307,5 +301,3 @@ interface EntryWriter {
int writeAll(@NotNull final DatagramChannel socketChannel) throws InterruptedException, IOException;
}