Stricter compiler checks + ErrorProne
<version>${maven.compiler.plugin.version}</version>
<configuration>
<release>11</release>
+ <compilerArgs>
+ <arg>-XDcompilePolicy=simple</arg>
+ <arg>-Xplugin:ErrorProne</arg>
+ <arg>-Xlint:unchecked</arg>
+ </compilerArgs>
+ <annotationProcessorPaths>
+ <path>
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>error_prone_core</artifactId>
+ <version>2.3.3</version>
+ </path>
+ </annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
