You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ki...@apache.org on 2021/11/19 23:48:28 UTC

[commons-text] 02/02: Prevent build failure due to DCN_NULLPOINTER_EXCEPTION (code suppressed is expected to catch null)

This is an automated email from the ASF dual-hosted git repository.

kinow pushed a commit to branch dependabot/maven/com.github.spotbugs-spotbugs-maven-plugin-4.5.0.0
in repository https://gitbox.apache.org/repos/asf/commons-text.git

commit ebf4a215efd0768ff618763b074b2f29d2913a62
Author: Bruno P. Kinoshita <ki...@users.noreply.github.com>
AuthorDate: Sat Nov 20 12:48:14 2021 +1300

    Prevent build failure due to DCN_NULLPOINTER_EXCEPTION (code suppressed is expected to catch null)
---
 spotbugs-exclude-filter.xml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/spotbugs-exclude-filter.xml b/spotbugs-exclude-filter.xml
index 26a541e..4308a2b 100644
--- a/spotbugs-exclude-filter.xml
+++ b/spotbugs-exclude-filter.xml
@@ -41,4 +41,15 @@
     <Bug code="CN" />
   </Match>
 
+  <Match>
+    <Class name="org.apache.commons.text.lookup.BiFunctionStringLookup" />
+    <Method name="lookup" />
+    <Bug code="DCN_NULLPOINTER_EXCEPTION" />
+  </Match>
+
+  <Match>
+    <Class name="org.apache.commons.text.lookup.FunctionStringLookup" />
+    <Method name="lookup" />
+    <Bug code="DCN_NULLPOINTER_EXCEPTION" />
+  </Match>
 </FindBugsFilter>