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/03 00:46:00 UTC
[commons-text] 02/02: Remove redundant exclusion rule, and use pattern and not code in exclusion bug
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 288b601b373c45fda4d933ddee3c79909ef05ae3
Author: Bruno P. Kinoshita <ki...@users.noreply.github.com>
AuthorDate: Fri Dec 3 13:24:39 2021 +1300
Remove redundant exclusion rule, and use pattern and not code in exclusion bug
---
spotbugs-exclude-filter.xml | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/spotbugs-exclude-filter.xml b/spotbugs-exclude-filter.xml
index 4a228ac..1b2de7e 100644
--- a/spotbugs-exclude-filter.xml
+++ b/spotbugs-exclude-filter.xml
@@ -41,29 +41,17 @@
<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>
-
<!-- BiFunctionStringLookup#lookup catches NPE to return null -->
<Match>
<Class name="org.apache.commons.text.lookup.BiFunctionStringLookup" />
<Method name="lookup" />
- <Bug code="DCN_NULLPOINTER_EXCEPTION" />
+ <Bug pattern="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" />
+ <Bug pattern="DCN_NULLPOINTER_EXCEPTION" />
</Match>
</FindBugsFilter>