From 80d3052033b612900316acea57dd4c1d87e2876e Mon Sep 17 00:00:00 2001 From: TobiGr Date: Tue, 8 Jun 2021 09:26:01 +0200 Subject: [PATCH] Fix Javadoc generation --- build.gradle | 6 ++++++ .../extractor/comments/CommentsInfoItemExtractor.java | 8 ++++---- .../extractors/YoutubeCommentsInfoItemExtractor.java | 6 +++--- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 4be42ff9f..0f1a5357d 100644 --- a/build.gradle +++ b/build.gradle @@ -48,6 +48,12 @@ task aggregatedJavadocs(type: Javadoc, group: 'Documentation') { // options.memberLevel = JavadocMemberLevel.PRIVATE options.links 'https://docs.oracle.com/javase/8/docs/api/' options.encoding 'UTF-8' + // Fixes unknown tag @implNote; the other two were added precautionary + options.tags = [ + "apiNote:a:API Note:", + "implSpec:a:Implementation Requirements:", + "implNote:a:Implementation Note:" + ] subprojects.each { project -> project.tasks.withType(Javadoc).each { javadocTask -> diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemExtractor.java index 8d844d4fe..783ce55f6 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemExtractor.java @@ -12,8 +12,8 @@ import javax.annotation.Nullable; public interface CommentsInfoItemExtractor extends InfoItemExtractor { /** - * Return the like count of the comment, or -1 if it's unavailable
- * + * Return the like count of the comment, or -1 if it's unavailable< + *
* NOTE: Currently only implemented for YT {@link YoutubeCommentsInfoItemExtractor#getLikeCount()} * with limitations (only approximate like count is returned) * @@ -24,8 +24,8 @@ public interface CommentsInfoItemExtractor extends InfoItemExtractor { } /** - * The unmodified like count given by the service
- * + * The unmodified like count given by the service + *
* It may be language dependent */ default String getTextualLikeCount() throws ParsingException { 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 e1f214bbb..cce064a67 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 @@ -72,10 +72,10 @@ public class YoutubeCommentsInfoItemExtractor implements CommentsInfoItemExtract } /** - * @implNote The method is parsing internally a localized string.
+ * @implNote The method is parsing internally a localized string.
* - *
+ *
* Consider using {@link #getTextualLikeCount()} */ @Override