fix HashableGroup equals
This commit is contained in:
@@ -419,7 +419,13 @@ public class ModelShareWorker implements Bootstrappable {
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return this.group.getId().equals(((Group) obj).getId());
|
||||
if (obj instanceof HashableGroup) {
|
||||
return this.group.getId().equals(((HashableGroup) obj).getGroup().getId());
|
||||
} else if (obj instanceof Group) {
|
||||
return this.group.getId().equals(((Group) obj).getId());
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user