mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Add missing @EqualsAndHashCode to Capabilities
Peer extends Capabilities and we use a HashSet to manage persisted peers. Without the @EqualsAndHashCode we would add endlessly peers to the hashsets.
This commit is contained in:
parent
9a5695dedc
commit
855ca062c6
@ -24,11 +24,14 @@ import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* hold a set of capabilities and offers appropriate comparison methods.
|
||||
*
|
||||
* @author Florian Reimair
|
||||
*/
|
||||
@EqualsAndHashCode
|
||||
public class Capabilities {
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user