From ea120a463725bdddf22577888f85dd42c7d82db2 Mon Sep 17 00:00:00 2001 From: TobiGr Date: Sat, 20 Feb 2021 00:23:32 +0100 Subject: [PATCH] remove print stacktrace use interface --- .../services/bandcamp/extractors/BandcampStreamExtractor.java | 2 +- .../bandcamp/extractors/BandcampSuggestionExtractor.java | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampStreamExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampStreamExtractor.java index 53e6d3970..005078a7a 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampStreamExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampStreamExtractor.java @@ -311,7 +311,7 @@ public class BandcampStreamExtractor extends StreamExtractor { public List getTags() { final Elements tagElements = document.getElementsByAttributeValue("itemprop", "keywords"); - final ArrayList tags = new ArrayList<>(); + final List tags = new ArrayList<>(); for (final Element e : tagElements) { tags.add(e.text()); diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampSuggestionExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampSuggestionExtractor.java index 9196e7c75..4eaa830cb 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampSuggestionExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampSuggestionExtractor.java @@ -47,8 +47,6 @@ public class BandcampSuggestionExtractor extends SuggestionExtractor { return suggestions; } catch (final JsonParserException e) { - e.printStackTrace(); - return Collections.emptyList(); }