From 088334014cfc55855302ec60b46108dcf86925b0 Mon Sep 17 00:00:00 2001 From: gubatron Date: Thu, 14 Jan 2016 17:07:00 -0500 Subject: [PATCH] [encapsulation] Alert::TTL. spaces. --- core/src/main/java/io/bitsquare/alert/Alert.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/main/java/io/bitsquare/alert/Alert.java b/core/src/main/java/io/bitsquare/alert/Alert.java index 1a0a3751d2..c075e36d67 100644 --- a/core/src/main/java/io/bitsquare/alert/Alert.java +++ b/core/src/main/java/io/bitsquare/alert/Alert.java @@ -26,7 +26,7 @@ public final class Alert implements PubKeyProtectedExpirablePayload { // That object is sent over the wire, so we need to take care of version compatibility. private static final long serialVersionUID = Version.NETWORK_PROTOCOL_VERSION; - public static final long TTL = 10 * 24 * 60 * 60 * 1000; // 10 days + private static final long TTL = 10 * 24 * 60 * 60 * 1000; // 10 days public final String message; private String signatureAsBase64; @@ -59,12 +59,9 @@ public final class Alert implements PubKeyProtectedExpirablePayload { public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Alert)) return false; - Alert that = (Alert) o; - if (message != null ? !message.equals(that.message) : that.message != null) return false; return !(getSignatureAsBase64() != null ? !getSignatureAsBase64().equals(that.getSignatureAsBase64()) : that.getSignatureAsBase64() != null); - } @Override