Skip to content

Commit f903e07

Browse files
committed
JAVA-2876: Ignore spurious redundant null check error from SpotBugs
1 parent ba92040 commit f903e07

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
@@ -152,4 +152,10 @@
152152
<Bug pattern="NM_SAME_SIMPLE_NAME_AS_INTERFACE"/>
153153
</Match>
154154

155+
<!-- Spotbugs assumes that SSLSocket#getSSLParameters never returns null, when that is not the case for all JDKs -->
156+
<Match>
157+
<Class name="com.mongodb.internal.connection.SocketStreamHelper"/>
158+
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
159+
</Match>
160+
155161
</FindBugsFilter>

0 commit comments

Comments
 (0)