mirror of
https://github.com/nextcloud/android.git
synced 2024-11-28 10:18:59 +03:00
codacy: Ensure you override both equals() and hashCode()
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
862e5d4776
commit
670e9d3a61
1 changed files with 7 additions and 0 deletions
|
@ -84,10 +84,12 @@ import org.jetbrains.annotations.NotNull;
|
|||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
@ -500,6 +502,11 @@ public class ContactListFragment extends FileFragment implements Injectable {
|
|||
public String toString() {
|
||||
return displayName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Arrays.hashCode(new Object[] {displayName, name, type});
|
||||
}
|
||||
}
|
||||
|
||||
private class DownloadFinishReceiver extends BroadcastReceiver {
|
||||
|
|
Loading…
Reference in a new issue