From a2ca23a08152bf5291ccbb604957d962167173cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 4 May 2015 20:19:25 +0200 Subject: [PATCH] Replace anonymous class by lambda --- .../filters/comics/SaturdayMorningBreakfastCerealComicFilter.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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 -- 2.7.4