Skip to content

Commit 0ef0b35

Browse files
committed
Disable RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE Spotbugs check
Spotbugs plugin complains about an extraneous null check for any use of try-with-resources compiled with Java 11. Until the issue is addressed by Spotbugs, disabling the check. JAVA-3632
1 parent 0c0b5de commit 0ef0b35

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

config/findbugs-exclude.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,10 @@
163163
<Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT"/>
164164
</Match>
165165

166+
<!-- Caused by Java 11 generating a null check on try with resources.
167+
See https://github.com/spotbugs/spotbugs/issues/756 for details. -->
168+
<Match>
169+
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
170+
</Match>
171+
166172
</FindBugsFilter>

0 commit comments

Comments
 (0)