Fix wrong equals check

This commit is contained in:
Manfred Karrer 2016-08-06 22:03:06 +02:00
parent ee3955717c
commit 0ccb2576a3
3 changed files with 5 additions and 5 deletions

View file

@ -253,17 +253,17 @@ public final class DisputeResult implements Payload {
if (disputeFeePolicy != null && that.disputeFeePolicy != null && disputeFeePolicy.ordinal() != that.disputeFeePolicy.ordinal())
return false;
else if ((disputeFeePolicy == null && that.disputeFeePolicy != null) || disputeFeePolicy != null)
else if ((disputeFeePolicy == null && that.disputeFeePolicy != null) || (disputeFeePolicy != null && that.disputeFeePolicy == null))
return false;
if (reason != null && that.reason != null && reason.ordinal() != that.reason.ordinal())
return false;
else if ((reason == null && that.reason != null) || reason != null)
else if ((reason == null && that.reason != null) || (reason != null && that.reason == null))
return false;
if (winner != null && that.winner != null && winner.ordinal() != that.winner.ordinal())
return false;
else if ((winner == null && that.winner != null) || winner != null)
else if ((winner == null && that.winner != null) || (winner != null && that.winner == null))
return false;
if (summaryNotes != null ? !summaryNotes.equals(that.summaryNotes) : that.summaryNotes != null) return false;

View file

@ -505,7 +505,7 @@ public final class Offer implements Priority1StoragePayload, RequiresOwnerIsOnli
if (direction != null && that.direction != null && direction.ordinal() != that.direction.ordinal())
return false;
else if ((direction == null && that.direction != null) || direction != null)
else if ((direction == null && that.direction != null) || (direction != null && that.direction == null))
return false;
if (currencyCode != null ? !currencyCode.equals(that.currencyCode) : that.currencyCode != null) return false;

View file

@ -113,7 +113,7 @@ public final class TradeStatistics implements Priority2StoragePayload, Capabilit
if (direction != null && that.direction != null && direction.ordinal() != that.direction.ordinal())
return false;
else if ((direction == null && that.direction != null) || direction != null)
else if ((direction == null && that.direction != null) || (direction != null && that.direction == null))
return false;
if (paymentMethod != null ? !paymentMethod.equals(that.paymentMethod) : that.paymentMethod != null)