From fdebf3c6cdf88fed8a372d7d7376acfa3a9f8c10 Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Wed, 7 Jul 2021 20:41:59 +0200 Subject: [PATCH] Added javadoc warnings --- .../newpipe/extractor/comments/CommentsExtractor.java | 4 ++++ .../schabi/newpipe/extractor/comments/CommentsInfo.java | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsExtractor.java index 6a129bca6..4795e9897 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsExtractor.java @@ -13,6 +13,10 @@ public abstract class CommentsExtractor extends ListExtractor super(service, uiHandler); } + /** + * @apiNote Warning: This method is experimental and may get removed in a future release. + * @return true if the comments are disabled otherwise false (default) + */ public boolean isCommentsDisabled() { return false; } diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfo.java b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfo.java index 8803aa575..506bee536 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfo.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfo.java @@ -81,10 +81,19 @@ public class CommentsInfo extends ListInfo { this.commentsExtractor = commentsExtractor; } + /** + * @apiNote Warning: This method is experimental and may get removed in a future release. + * @return true if the comments are disabled otherwise false (default) + * @see CommentsExtractor#isCommentsDisabled() + */ public boolean isCommentsDisabled() { return commentsDisabled; } + /** + * @apiNote Warning: This method is experimental and may get removed in a future release. + * @param commentsDisabled true if the comments are disabled otherwise false + */ public void setCommentsDisabled(final boolean commentsDisabled) { this.commentsDisabled = commentsDisabled; }