Removed unnecessary code
This commit is contained in:
parent
14845e9a42
commit
9cad737be2
|
@ -8,7 +8,7 @@ import java.util.Date;
|
||||||
* @author daniel
|
* @author daniel
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class FeedItem extends FeedComponent implements Comparable<FeedItem>{
|
public class FeedItem extends FeedComponent{
|
||||||
private String title;
|
private String title;
|
||||||
private String description;
|
private String description;
|
||||||
private String link;
|
private String link;
|
||||||
|
@ -85,11 +85,4 @@ public class FeedItem extends FeedComponent implements Comparable<FeedItem>{
|
||||||
return read;
|
return read;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public int compareTo(FeedItem another) {
|
|
||||||
long diff = pubDate.getTime() - another.getPubDate().getTime();
|
|
||||||
return (int) Math.signum(diff);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue