Skip to content

Commit 80d3052

Browse files
committed
Fix Javadoc generation
1 parent 98825a2 commit 80d3052

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ task aggregatedJavadocs(type: Javadoc, group: 'Documentation') {
4848
// options.memberLevel = JavadocMemberLevel.PRIVATE
4949
options.links 'https://docs.oracle.com/javase/8/docs/api/'
5050
options.encoding 'UTF-8'
51+
// Fixes unknown tag @implNote; the other two were added precautionary
52+
options.tags = [
53+
"apiNote:a:API Note:",
54+
"implSpec:a:Implementation Requirements:",
55+
"implNote:a:Implementation Note:"
56+
]
5157

5258
subprojects.each { project ->
5359
project.tasks.withType(Javadoc).each { javadocTask ->

extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemExtractor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
public interface CommentsInfoItemExtractor extends InfoItemExtractor {
1313

1414
/**
15-
* Return the like count of the comment, or -1 if it's unavailable<br/>
16-
*
15+
* Return the like count of the comment, or -1 if it's unavailable<
16+
* <br>
1717
* NOTE: Currently only implemented for YT {@link YoutubeCommentsInfoItemExtractor#getLikeCount()}
1818
* with limitations (only approximate like count is returned)
1919
*
@@ -24,8 +24,8 @@ default int getLikeCount() throws ParsingException {
2424
}
2525

2626
/**
27-
* The unmodified like count given by the service<br/>
28-
*
27+
* The unmodified like count given by the service
28+
* <br>
2929
* It may be language dependent
3030
*/
3131
default String getTextualLikeCount() throws ParsingException {

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeCommentsInfoItemExtractor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ public DateWrapper getUploadDate() throws ParsingException {
7272
}
7373

7474
/**
75-
* @implNote The method is parsing internally a localized string.<br/>
75+
* @implNote The method is parsing internally a localized string.<br>
7676
* <ul>
7777
* <li>
78-
* More than >1k likes will result in an inaccurate number
78+
* More than 1k likes will result in an inaccurate number
7979
* </li>
8080
* <li>
8181
* This will fail for other languages than English.
@@ -84,7 +84,7 @@ public DateWrapper getUploadDate() throws ParsingException {
8484
* everything will work fine.
8585
* </li>
8686
* </ul>
87-
* <br/>
87+
* <br>
8888
* Consider using {@link #getTextualLikeCount()}
8989
*/
9090
@Override

0 commit comments

Comments
 (0)