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/12/02 03:17:11 UTC
[commons-text] 02/02: Ignore SpotBugs DCN_NULLPOINTER_EXCEPTION since the two lookup methods are catching NPE to return null
This is an automated email from the ASF dual-hosted git repository.
kinow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git
commit 1a5990635f2a0a31da2850ed1cb955b86b5f1d8e
Author: Bruno P. Kinoshita <ki...@users.noreply.github.com>
AuthorDate: Thu Dec 2 15:56:48 2021 +1300
Ignore SpotBugs DCN_NULLPOINTER_EXCEPTION since the two lookup methods are catching NPE to return null
---
spotbugs-exclude-filter.xml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/spotbugs-exclude-filter.xml b/spotbugs-exclude-filter.xml
index 4308a2b..4a228ac 100644
--- a/spotbugs-exclude-filter.xml
+++ b/spotbugs-exclude-filter.xml
@@ -52,4 +52,18 @@
<Method name="lookup" />
<Bug code="DCN_NULLPOINTER_EXCEPTION" />
</Match>
+
+ <!-- BiFunctionStringLookup#lookup catches NPE to return null -->
+ <Match>
+ <Class name="org.apache.commons.text.lookup.BiFunctionStringLookup" />
+ <Method name="lookup" />
+ <Bug code="DCN_NULLPOINTER_EXCEPTION" />
+ </Match>
+
+ <!-- FunctionStringLookup#lookup catches NPE to return null -->
+ <Match>
+ <Class name="org.apache.commons.text.lookup.FunctionStringLookup" />
+ <Method name="lookup" />
+ <Bug code="DCN_NULLPOINTER_EXCEPTION" />
+ </Match>
</FindBugsFilter>