Skip to content

Commit d986f8a

Browse files
authored
Merge pull request #36 from FredPraca/fix/fix-and-publish-javadocs-and-sources
fix(docs): fix javadoc generation and package it along sources
2 parents b6a102a + 9c5d859 commit d986f8a

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ java {
7676
toolchain {
7777
languageVersion = JavaLanguageVersion.of(21)
7878
}
79+
withJavadocJar()
80+
withSourcesJar()
7981
}
8082
publishing {
8183
publications {

src/main/java/io/github/makbn/jthumbnail/core/ThumbnailerManager.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,11 @@ public synchronized void close() {
176176
* Try all available Thumbnailers and use the first that returns an image.
177177
* <p>
178178
* MIME-Detection narrows the selection of Thumbnailers to try:
179-
* <li>First all Thumbnailers that declare to accept such a MIME Type are used
180-
* <li>Then all Thumbnailers that declare to accept all possible MIME Types.
181-
*
179+
* <ul>
180+
* <li>First all Thumbnailers that declare to accept such a MIME Type are used</li>
181+
* <li>Then all Thumbnailers that declare to accept all possible MIME Types.</li>
182+
* </ul>
183+
*
182184
* @param input Input file that should be processed
183185
* @param output File in which should be written
184186
* @param mimeType MIME-Type of input file (null if unknown)
@@ -234,8 +236,10 @@ private String getMIMEType(File input, String mimeType) throws ThumbnailExceptio
234236
* Try all available Thumbnailers and use the first that returns an image.
235237
* <p>
236238
* MIME-Detection narrows the selection of Thumbnailers to try:
237-
* <li>First all Thumbnailers that declare to accept such a MIME Type are used
238-
* <li>Then all Thumbnailers that declare to accept all possible MIME Types.
239+
* <ul>
240+
* <li>First all Thumbnailers that declare to accept such a MIME Type are used</li>
241+
* <li>Then all Thumbnailers that declare to accept all possible MIME Types.</li>
242+
* </ul>
239243
*
240244
* @param input Input file that should be processed
241245
* @param output File in which should be written

src/main/java/io/github/makbn/jthumbnail/core/thumbnailers/AbstractThumbnailer.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@
3030
/**
3131
* This AbstractThumbnailer may be used in order to implement only essential
3232
* methods. It
33-
* <li>stores the current thumbnail height/width
34-
* <li>implements an empty close method
35-
* <li>specifies a wildcard MIME Type as appropriate Filetype
36-
*
33+
* <ul>
34+
* <li>stores the current thumbnail height/width</li>
35+
* <li>implements an empty close method</li>
36+
* <li>specifies a wildcard MIME Type as appropriate Filetype</li>
37+
* </ul>
38+
*
3739
* @author Mehdi Akbarian-Rastaghi
3840
*/
3941
public abstract class AbstractThumbnailer implements Thumbnailer {

0 commit comments

Comments
 (0)