Skip to content

Commit b1b9e48

Browse files
committed
bit stricter checkstyle
1 parent 5858e2d commit b1b9e48

24 files changed

+63
-15
lines changed

checkstyle.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@
326326
<module name="SummaryJavadoc">
327327
<property name="forbiddenSummaryFragments"
328328
value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
329+
<property name="severity" value="error"/>
329330
</module>
330331
<module name="JavadocParagraph"/>
331332
<module name="RequireEmptyLineBeforeBlockTagGroup"/>

pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
<plugin>
9898
<groupId>org.apache.maven.plugins</groupId>
9999
<artifactId>maven-checkstyle-plugin</artifactId>
100-
<version>3.2.1</version>
100+
<version>3.6.0</version>
101101
<dependencies>
102102
<dependency>
103103
<groupId>com.puppycrawl.tools</groupId>
@@ -132,6 +132,10 @@
132132
<target>8</target>
133133
</configuration>
134134
</plugin>
135+
<plugin>
136+
<groupId>org.apache.maven.plugins</groupId>
137+
<artifactId>maven-checkstyle-plugin</artifactId>
138+
</plugin>
135139
<plugin>
136140
<groupId>org.sonatype.central</groupId>
137141
<artifactId>central-publishing-maven-plugin</artifactId>

src/main/java/com/mindee/MindeeClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ public <T extends Inference> AsyncPredictResponse<T> enqueueAndParse(
416416
}
417417

418418
/**
419+
* Validate async polling options.
419420
* @param pollingOptions Options for async call parameters
420421
* @throws MindeeException Throws if settings aren't set properly.
421422
*/

src/main/java/com/mindee/cli/CommandLineInterfaceProducts.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public class CommandLineInterfaceProducts {
3636
private final ProductProcessor processor;
3737

3838
/**
39+
* Default constructor.
3940
* @param processor Processor instance to render the products.
4041
*/
4142
public CommandLineInterfaceProducts(ProductProcessor processor) {

src/main/java/com/mindee/cli/ProductProcessor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
)
1717
public interface ProductProcessor {
1818
/**
19+
* Process a product synchronously.
1920
* @param productClass Product class to be processed for synchronous products.
2021
* @param file Input file.
2122
* @param <T> Type of the product.
@@ -25,6 +26,7 @@ public interface ProductProcessor {
2526
<T extends Inference<?, ?>> String standardProductOutput(Class<T> productClass, File file) throws IOException;
2627

2728
/**
29+
* Process a product asynchronously.
2830
* @param productClass Product class to be processed for asynchronous products.
2931
* @param file Input file.
3032
* @param <T> Type of the product.

src/main/java/com/mindee/extraction/ExtractedImage.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class ExtractedImage {
2020
private final String saveFormat;
2121

2222
/**
23+
* Default constructor.
2324
* @param image Buffered image object.
2425
* @param filename Name of the extracted image.
2526
* @param saveFormat Format to save the image as, defaults to PNG.

src/main/java/com/mindee/extraction/ExtractedPDF.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public class ExtractedPDF {
1919
private final String filename;
2020

2121
/**
22+
* Default constructor.
23+
*
2224
* @param pdf PDF wrapper object.
2325
* @param filename Name of the extracted file.
2426
*/

src/main/java/com/mindee/extraction/ImageExtractor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ public ImageExtractor(LocalInputSource source) throws IOException {
5757
}
5858

5959
/**
60+
* Get the number of pages in the file.
61+
*
6062
* @return The number of pages in the file.
6163
*/
6264
public int getPageCount() {

src/main/java/com/mindee/extraction/PDFExtractor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ public PDFExtractor(LocalInputSource source) throws IOException {
6464
}
6565

6666
/**
67-
* @return The number of pages in the file.
67+
* Get the number of pages in the PDF file.
68+
*
69+
* @return The number of pages in the PDF file.
6870
*/
6971
public int getPageCount() {
7072
return sourcePdf.getNumberOfPages();

src/main/java/com/mindee/http/MindeeHttpApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public final class MindeeHttpApi extends MindeeApi {
5050
private final MindeeSettings mindeeSettings;
5151
/**
5252
* The HttpClientBuilder used to create HttpClient objects used to make api calls over http.
53-
* Defaults to HttpClientBuilder.create().useSystemProperties()
53+
* Defaults to HttpClientBuilder.create().useSystemProperties().
5454
*/
5555
private final HttpClientBuilder httpClientBuilder;
5656
/**
@@ -145,7 +145,7 @@ private MindeeHttpApi(
145145
}
146146

147147
/**
148-
* GET job status and document for an enqueued job
148+
* GET job status and document for an enqueued job.
149149
*/
150150
public <DocT extends Inference> AsyncPredictResponse<DocT> documentQueueGet(
151151
Class<DocT> documentClass,

0 commit comments

Comments
 (0)