From c230d84df1df5e8d92a0d5190f0e2dff294b560c Mon Sep 17 00:00:00 2001 From: AudricV <74829229+AudricV@users.noreply.github.com> Date: Sat, 29 Oct 2022 13:24:19 +0200 Subject: [PATCH] Fix Checkstyle error in YoutubeCommentsInfoItemExtractor --- .../extractors/YoutubeCommentsInfoItemExtractor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeCommentsInfoItemExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeCommentsInfoItemExtractor.java index d24ef5bd9..2efc9013b 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeCommentsInfoItemExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeCommentsInfoItemExtractor.java @@ -251,9 +251,9 @@ public class YoutubeCommentsInfoItemExtractor implements CommentsInfoItemExtract @Override public int getReplyCount() throws ParsingException { - final JsonObject commentRenderer = getCommentRenderer(); - if (commentRenderer.has("replyCount")) { - return commentRenderer.getInt("replyCount"); + final JsonObject commentRendererJsonObject = getCommentRenderer(); + if (commentRendererJsonObject.has("replyCount")) { + return commentRendererJsonObject.getInt("replyCount"); } return UNKNOWN_REPLY_COUNT; }