mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 06:55:08 +01:00
Remove transitive javafx.collections dependency
This commit is contained in:
parent
fae7288385
commit
30135177f8
1 changed files with 5 additions and 5 deletions
|
@ -289,12 +289,12 @@ public class ClosedTradeUtil {
|
|||
}
|
||||
|
||||
public int getNumPastTrades(Tradable tradable) {
|
||||
return closedTradableManager.getObservableList().stream()
|
||||
.filter(candidate -> {
|
||||
if (!(candidate instanceof Trade) || !(tradable instanceof Trade))
|
||||
return false;
|
||||
if (!(tradable instanceof Trade))
|
||||
return 0;
|
||||
|
||||
NodeAddress candidateAddress = ((Trade) candidate).getTradingPeerNodeAddress();
|
||||
return closedTradableManager.getClosedTrades().stream()
|
||||
.filter(candidate -> {
|
||||
NodeAddress candidateAddress = candidate.getTradingPeerNodeAddress();
|
||||
NodeAddress tradableAddress = ((Trade) tradable).getTradingPeerNodeAddress();
|
||||
return candidateAddress != null
|
||||
&& tradableAddress != null
|
||||
|
|
Loading…
Add table
Reference in a new issue