Don't sort list of RSS feeds in UI.

This commit is contained in:
akwizgran
2022-12-12 17:31:45 +00:00
parent 33d01aac8c
commit e52250f1e4
3 changed files with 3 additions and 15 deletions

View File

@@ -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();