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
@@ -71,7 +71,6 @@ abstract class AbstractChannelReplicator implements Closeable {
@Nullable
private final Throttler throttler;
volatile boolean isClosed = false;
ThreadLocalCopies copies;
VanillaChronicleMap.SegmentState segmentState;
@@ -118,7 +117,6 @@ abstract class AbstractChannelReplicator implements Closeable {
}
}
}
);
return openSelector(result, selectedKeys);
@@ -146,7 +144,6 @@ abstract class AbstractChannelReplicator implements Closeable {
return result;
}
/**
* this is similar to the code in Netty
*
@@ -156,10 +153,8 @@ abstract class AbstractChannelReplicator implements Closeable {
private Selector openSelector(@NotNull final Selector selector,
@NotNull final SelectedSelectionKeySet selectedKeySet) {
try {
Class<?> selectorImplClass =
Class.forName("sun.nio.ch.SelectorImpl", false, getSystemClassLoader());
@@ -171,7 +166,6 @@ abstract class AbstractChannelReplicator implements Closeable {
Field selectedKeysField = selectorImplClass.getDeclaredField("selectedKeys");
Field publicSelectedKeysField = selectorImplClass.getDeclaredField("publicSelectedKeys");
selectedKeysField.setAccessible(true);
publicSelectedKeysField.setAccessible(true);
@@ -234,7 +228,6 @@ abstract class AbstractChannelReplicator implements Closeable {
);
}
@Override
public void close() {
if (Thread.interrupted())
@@ -297,7 +290,6 @@ abstract class AbstractChannelReplicator implements Closeable {
closeables.closeQuietly(channel);
}
void checkThrottleInterval() throws ClosedChannelException {
if (throttler != null)
throttler.checkThrottleInterval();
@@ -372,7 +364,6 @@ abstract class AbstractChannelReplicator implements Closeable {
}
}
/**
* checks the number of bytes written in this interval, if this number of bytes exceeds a
* threshold, the selected will de-register the socket that is being written to, until the
@@ -465,7 +456,6 @@ abstract class AbstractChannelReplicator implements Closeable {
throw new IllegalStateException("entry too large, the entry size=" + entrySize + ", " +
"entries are limited to a size of " + Integer.MAX_VALUE);
int entrySize1 = (int) entrySize;
if (LOG.isDebugEnabled())
LOG.debug("sending entry of entrySize=" + entrySize1);
@@ -511,7 +501,6 @@ abstract class AbstractChannelReplicator implements Closeable {
doConnect(0);
}
/**
* @param reconnectionInterval the period to wait before connecting
*/
@@ -539,7 +528,6 @@ abstract class AbstractChannelReplicator implements Closeable {
AbstractConnector.this.socketChannel = socketChannel;
} catch (Exception e) {
closeQuietly(socketChannel);
LOG.debug("", e);
@@ -561,7 +549,6 @@ abstract class AbstractChannelReplicator implements Closeable {
thread.setDaemon(true);
thread.start();
}
public void setSuccessfullyConnected() {
@@ -569,5 +556,4 @@ abstract class AbstractChannelReplicator implements Closeable {
}
}
}