Add callSuper = true to EqualsAndHashCode in Peer

This commit is contained in:
Manfred Karrer 2019-03-06 18:39:43 -05:00
parent 73eea7927a
commit 9638f58f7b
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46

View File

@ -36,7 +36,8 @@ import lombok.extern.slf4j.Slf4j;
import javax.annotation.Nullable;
@Getter
@EqualsAndHashCode(exclude = {"date"}) // failedConnectionAttempts is transient and therefore excluded anyway
@EqualsAndHashCode(exclude = {"date"}, callSuper = true)
// failedConnectionAttempts is transient and therefore excluded anyway
@Slf4j
public final class Peer extends Capabilities implements NetworkPayload, PersistablePayload, SupportedCapabilitiesListener {
private static final int MAX_FAILED_CONNECTION_ATTEMPTS = 5;