Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/_static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
cache: "maven"

- name: Check Code Style
run: mvn --update-snapshots --no-transfer-progress checkstyle:check
run: mvn --update-snapshots --no-transfer-progress spotless:check
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ hs_err_pid*
.idea
*.iml
.run
.project
.settings

# Mac OS
.DS_Store
Expand Down
391 changes: 0 additions & 391 deletions checkstyle.xml

This file was deleted.

405 changes: 405 additions & 0 deletions eclipse-formatter.xml

Large diffs are not rendered by default.

36 changes: 13 additions & 23 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,34 +95,24 @@
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.2.1</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>10.9.3</version>
</dependency>
</dependencies>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<!-- Version 2.x is the last with JRE 11 support -->
<version>2.46.1</version>
<configuration>
<configLocation>checkstyle.xml</configLocation>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<violationSeverity>error</violationSeverity>
<java>
<importOrder/>
<removeUnusedImports />
<eclipse>
<file>${project.basedir}/eclipse-formatter.xml</file>
</eclipse>
<formatAnnotations />
</java>
</configuration>
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
6 changes: 1 addition & 5 deletions src/main/java/com/mindee/AsyncPollingOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ public class AsyncPollingOptions {
Integer maxRetries;

@Builder
private AsyncPollingOptions(
Double initialDelaySec,
Double intervalSec,
Integer maxRetries
) {
private AsyncPollingOptions(Double initialDelaySec, Double intervalSec, Integer maxRetries) {
this.initialDelaySec = initialDelaySec == null ? 2.0 : initialDelaySec;
this.intervalSec = intervalSec == null ? 1.5 : intervalSec;
this.maxRetries = maxRetries == null ? 80 : maxRetries;
Expand Down
Loading
Loading