From: David ‘Bombe’ Roden Date: Mon, 4 May 2015 18:19:25 +0000 (+0200) Subject: Replace anonymous class by lambda X-Git-Tag: v2~194 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a2ca23a08152bf5291ccbb604957d962167173cd;p=rhynodge.git Replace anonymous class by lambda --- diff --git a/src/main/java/net/pterodactylus/rhynodge/filters/comics/SaturdayMorningBreakfastCerealComicFilter.java b/src/main/java/net/pterodactylus/rhynodge/filters/comics/SaturdayMorningBreakfastCerealComicFilter.java index bfdbda4..e37f01a 100644 --- a/src/main/java/net/pterodactylus/rhynodge/filters/comics/SaturdayMorningBreakfastCerealComicFilter.java +++ b/src/main/java/net/pterodactylus/rhynodge/filters/comics/SaturdayMorningBreakfastCerealComicFilter.java @@ -45,13 +45,7 @@ public class SaturdayMorningBreakfastCerealComicFilter extends ComicSiteFilter { protected List extractImageUrls(Document document) { String imageUrl = document.select("#comicimage img").get(0).attr("src"); String afterImageUrl = document.select("#aftercomic img").attr("src"); - return FluentIterable.from(Arrays.asList(imageUrl, afterImageUrl)).filter(new Predicate() { - - @Override - public boolean apply(String url) { - return url.length() > 0; - } - }).toList(); + return FluentIterable.from(Arrays.asList(imageUrl, afterImageUrl)).filter(url -> url.length() > 0).toList(); } @Override