Skip to content

Commit a41c2fa

Browse files
committedNov 7, 2019
SpotBugs fix for Java11
1 parent 27299f0 commit a41c2fa

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
 

‎pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,11 @@
341341
<effort>Max</effort>
342342
<threshold>Low</threshold>
343343
<xmlOutput>true</xmlOutput>
344+
<!-- Java11 triggers issue
345+
https://github.com/spotbugs/spotbugs/issues/756
346+
that is false positive, excluding it
347+
-->
348+
<excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
344349
</configuration>
345350
<executions>
346351
<execution>

‎spotbugs-exclude.xml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<FindBugsFilter>
2+
<Match>
3+
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE" />
4+
</Match>
5+
<Match>
6+
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" />
7+
</Match>
8+
</FindBugsFilter>

0 commit comments

Comments
 (0)
Please sign in to comment.