Changed behavior of getIdentifyingValue()
This commit is contained in:
parent
c95c31f802
commit
1e8f31b979
@ -122,14 +122,14 @@ public class Feed extends FeedFile {
|
||||
/**
|
||||
* Returns the value that uniquely identifies this Feed. If the
|
||||
* feedIdentifier attribute is not null, it will be returned. Else it will
|
||||
* try to return the link. If the link is not given, it will use the title
|
||||
* of the entry.
|
||||
* try to return the download URL. If the download URL is not given, it will use the title
|
||||
* of the feed.
|
||||
* */
|
||||
public String getIdentifyingValue() {
|
||||
if (feedIdentifier != null) {
|
||||
return feedIdentifier;
|
||||
} else if (link != null) {
|
||||
return link;
|
||||
} else if (download_url != null) {
|
||||
return download_url;
|
||||
} else {
|
||||
return title;
|
||||
}
|
||||
|
@ -63,16 +63,16 @@ public class FeedItem extends FeedComponent {
|
||||
|
||||
/** Returns the value that uniquely identifies this FeedItem.
|
||||
* If the itemIdentifier attribute is not null, it will be returned.
|
||||
* Else it will try to return the link. If the link is not given, it will
|
||||
* use the title of the entry.
|
||||
* Else it will try to return the title. If the title is not given, it will
|
||||
* use the link of the entry.
|
||||
* */
|
||||
public String getIdentifyingValue() {
|
||||
if (itemIdentifier != null) {
|
||||
return itemIdentifier;
|
||||
} else if (link != null) {
|
||||
return link;
|
||||
} else {
|
||||
} else if (title != null) {
|
||||
return title;
|
||||
} else {
|
||||
return link;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user