Skip to content

Commit

Permalink
Enable NullAway errorprone checks (#2204)
Browse files Browse the repository at this point in the history
* Enable NullAway checks
* Default to warnings for now so we can fix nullability issues in a future PR
  • Loading branch information
jplock authored and joschi committed Nov 11, 2017
1 parent babd466 commit 3841415
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,19 @@
<forceJavacCompilerUse>true</forceJavacCompilerUse>
<showWarnings>true</showWarnings>
<fork>true</fork>
<compilerArgument>-XepDisableWarningsInGeneratedCode</compilerArgument>
<annotationProcessorPaths>
<!-- enable extended nullability checks -->
<path>
<groupId>com.uber.nullaway</groupId>
<artifactId>nullaway</artifactId>
<version>0.1.7</version>
</path>
</annotationProcessorPaths>
<compilerArgs>
<arg>-XepDisableWarningsInGeneratedCode</arg>
<!-- Defaults to WARNING <arg>-Xep:NullAway:ERROR</arg> -->
<arg>-XepOpt:NullAway:AnnotatedPackages=io.dropwizard</arg>
</compilerArgs>
</configuration>
<dependencies>
<dependency>
Expand All @@ -355,7 +367,7 @@
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>2.1.1</version>
<version>2.1.2</version>
</dependency>
</dependencies>
</plugin>
Expand Down

0 comments on commit 3841415

Please sign in to comment.