Code tidy a wider set of code.

This commit is contained in:
Peter Lawrey
2015-06-21 12:25:59 +01:00
parent 680182b129
commit 34c4cd8d32
32 changed files with 76 additions and 93 deletions
@@ -33,7 +33,7 @@ public final class ChronicleHashErrorListeners {
* We can add some configuration-on-the-first-call in the future.
*/
private static enum LoggingErrorListener implements ChronicleHashErrorListener {
private enum LoggingErrorListener implements ChronicleHashErrorListener {
INSTANCE;
@Override
@@ -52,7 +52,7 @@ public final class ChronicleHashErrorListeners {
}
}
private static enum ThrowingErrorListener implements ChronicleHashErrorListener {
private enum ThrowingErrorListener implements ChronicleHashErrorListener {
INSTANCE;
@Override
@@ -176,11 +176,9 @@ public final class TcpTransportAndNetworkConfig implements Serializable {
if (endpoints != null ? !endpoints.equals(that.endpoints) : that.endpoints != null)
return false;
if (heartBeatIntervalUnit != that.heartBeatIntervalUnit) return false;
if (throttlingConfig != null ? !throttlingConfig.equals(that.throttlingConfig) :
that.throttlingConfig != null)
return false;
return !(throttlingConfig != null ? !throttlingConfig.equals(that.throttlingConfig) :
that.throttlingConfig != null);
return true;
}
@Override