From fd0cac5957a9d3da83c86fe4cc25cdd6e2609332 Mon Sep 17 00:00:00 2001 From: Anderson Mesquita Date: Mon, 22 Jul 2019 18:34:01 -0400 Subject: [PATCH] Fix deprecation warning Original class: https://github.com/jhy/jsoup/blob/9e36f9e/src/main/java/org/jsoup/examples/HtmlToPlainText.java --- .../antennapod/core/util/syndication/HtmlToPlainText.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/syndication/HtmlToPlainText.java b/core/src/main/java/de/danoeh/antennapod/core/util/syndication/HtmlToPlainText.java index cc6a8ec90..61072f1ad 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/util/syndication/HtmlToPlainText.java +++ b/core/src/main/java/de/danoeh/antennapod/core/util/syndication/HtmlToPlainText.java @@ -33,8 +33,8 @@ public class HtmlToPlainText { */ public String getPlainText(Element element) { FormattingVisitor formatter = new FormattingVisitor(); - NodeTraversor traversor = new NodeTraversor(formatter); - traversor.traverse(element); // walk the DOM, and call .head() and .tail() for each node + // walk the DOM, and call .head() and .tail() for each node + NodeTraversor.traverse(formatter, element); return formatter.toString(); }