mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Fix wrong equals check
This commit is contained in:
parent
ee3955717c
commit
0ccb2576a3
3 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue