mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 14:42:37 +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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue