Skip to content

Commit f5a5dff

Browse files
committed
Add NullAway
Signed-off-by: Stefano Cordio <[email protected]>
1 parent e32f04f commit f5a5dff

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@
156156
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
157157
<spring-javaformat-maven-plugin.version>0.0.39</spring-javaformat-maven-plugin.version>
158158
<error-prone.version>2.38.0</error-prone.version>
159+
<nullaway.version>0.12.7</nullaway.version>
159160
</properties>
160161

161162
<build>
@@ -187,6 +188,9 @@
187188
<compilerArg>--should-stop=ifError=FLOW</compilerArg>
188189
<compilerArg>
189190
-Xplugin:ErrorProne
191+
<!-- Check JSpecify annotations -->
192+
-Xep:NullAway:ERROR
193+
-XepOpt:NullAway:OnlyNullMarked
190194
</compilerArg>
191195
</compilerArgs>
192196
<annotationProcessorPaths>
@@ -195,6 +199,11 @@
195199
<artifactId>error_prone_core</artifactId>
196200
<version>${error-prone.version}</version>
197201
</path>
202+
<path>
203+
<groupId>com.uber.nullaway</groupId>
204+
<artifactId>nullaway</artifactId>
205+
<version>${nullaway.version}</version>
206+
</path>
198207
</annotationProcessorPaths>
199208
</configuration>
200209
</plugin>

0 commit comments

Comments
 (0)