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:
Manfred Karrer 2019-03-07 20:41:40 -05:00
parent 9a5695dedc
commit 855ca062c6
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46

View File

@ -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 {
/**