toString() not needed

This commit is contained in:
Athou
2014-08-14 10:21:36 +02:00
parent 4203e25321
commit c1b8619b26

View File

@@ -89,9 +89,9 @@ public class FeedFetcher {
Elements atom = doc.select("link[type=application/atom+xml]"); Elements atom = doc.select("link[type=application/atom+xml]");
Elements rss = doc.select("link[type=application/rss+xml]"); Elements rss = doc.select("link[type=application/rss+xml]");
if (!atom.isEmpty()) { if (!atom.isEmpty()) {
foundUrl = atom.get(0).attr("abs:href").toString(); foundUrl = atom.get(0).attr("abs:href");
} else if (!rss.isEmpty()) { } else if (!rss.isEmpty()) {
foundUrl = rss.get(0).attr("abs:href").toString(); foundUrl = rss.get(0).attr("abs:href");
} }
} }
return foundUrl; return foundUrl;