Skip to content

Commit 33f630a

Browse files
authored
docs: add @implNote to DeezerRequest (#212)
1 parent fb2b799 commit 33f630a

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ tasks.withType(JavaCompile).configureEach {
118118
}
119119
}
120120

121+
javadoc {
122+
options {
123+
tags 'implNote:a:Implementation Note:'
124+
}
125+
}
126+
121127
jacocoTestReport {
122128
dependsOn test, integrationTest
123129

config/checkstyle/checkstyle.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
<property name="file" value="${config_loc}/checkstyle-suppressions.xml"/>
88
</module>
99

10+
<module name="SuppressionSingleFilter">
11+
<property name="message" value="Unknown tag '(implNote|implSpec|apiNote)'"/>
12+
</module>
13+
1014
<module name="FileLength"/>
1115
<module name="FileTabCharacter"/>
1216
<module name="JavadocPackage"/>
@@ -40,6 +44,9 @@
4044
@throws,
4145
@author,
4246
@version,
47+
@implNote,
48+
@implSpec,
49+
@apiNote,
4350
@since"/>
4451
</module>
4552
<module name="AvoidNestedBlocks">

src/main/java/io/github/yvasyliev/dz4j/request/DeezerRequest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
/**
88
* Represents a request to the Deezer API that can be executed synchronously or asynchronously.
99
*
10-
* <p>
11-
* It's recommended to extend {@link AbstractDeezerRequest} instead of implementing this interface directly for the
12-
* streamlined handling of exceptions and asynchronous execution.
13-
*
1410
* @param <T> the type of the response expected from the Deezer API
11+
* @implNote Implementers are encouraged to extend {@link AbstractDeezerRequest} rather than {@code implement}
12+
* this interface directly; the abstract base class provides default exception handling and a standard
13+
* asynchronous implementation.
1514
*/
1615
public interface DeezerRequest<T> {
1716
/**

0 commit comments

Comments
 (0)