mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Don't sort list of RSS feeds in UI.
This commit is contained in:
@@ -9,7 +9,7 @@ import javax.annotation.concurrent.Immutable;
|
||||
|
||||
@Immutable
|
||||
@NotNullByDefault
|
||||
public class Feed implements Comparable<Feed> {
|
||||
public class Feed {
|
||||
|
||||
private final Blog blog;
|
||||
private final LocalAuthor localAuthor;
|
||||
@@ -68,16 +68,6 @@ public class Feed implements Comparable<Feed> {
|
||||
return false;
|
||||
}
|
||||
|
||||
// FIXME: compareTo() is inconsistent with equals()
|
||||
@Override
|
||||
public int compareTo(Feed o) {
|
||||
if (this == o) return 0;
|
||||
long aTime = getAdded(), bTime = o.getAdded();
|
||||
if (aTime > bTime) return -1;
|
||||
if (aTime < bTime) return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return blog.hashCode();
|
||||
|
||||
Reference in New Issue
Block a user