mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Code tidy a wider set of code.
This commit is contained in:
@@ -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
|
||||
|
||||
+2
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user