You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/07/04 18:14:59 UTC
[commons-dbutils] branch master updated: Add missing namespace and XSD to SpotBugs filter file.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-dbutils.git
The following commit(s) were added to refs/heads/master by this push:
new cff55fd Add missing namespace and XSD to SpotBugs filter file.
cff55fd is described below
commit cff55fd2136aa53cb5c274e1c85b2c77f4859e4f
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Jul 4 14:14:55 2022 -0400
Add missing namespace and XSD to SpotBugs filter file.
---
src/site/resources/spotbugs/sb-excludes.xml | 89 +++++++++++++++--------------
1 file changed, 47 insertions(+), 42 deletions(-)
diff --git a/src/site/resources/spotbugs/sb-excludes.xml b/src/site/resources/spotbugs/sb-excludes.xml
index 38edc9b..4299fab 100644
--- a/src/site/resources/spotbugs/sb-excludes.xml
+++ b/src/site/resources/spotbugs/sb-excludes.xml
@@ -1,43 +1,48 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<FindBugsFilter>
- <!-- PrintWriter wraps System.err which always uses the default encoding -->
- <Match>
- <Class name="org.apache.commons.dbutils.DbUtils" />
- <Method name="printStackTrace" />
- <Bug pattern="DM_DEFAULT_ENCODING" />
- </Match>
- <!-- PrintWriter wraps System.err which always uses the default encoding -->
- <Match>
- <Class name="org.apache.commons.dbutils.DbUtils" />
- <Method name="printWarnings" />
- <Bug pattern="DM_DEFAULT_ENCODING" />
- </Match>
- <!-- The Javadocs state and the called code shows that null can be returned. -->
- <Match>
- <Class name="org.apache.commons.dbutils.QueryLoader" />
- <Method name="loadQueries" />
- <Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" />
- </Match>
- <!-- This method returns a boolean indicating status. -->
- <Match>
- <Class name="org.apache.commons.dbutils.DbUtils" />
- <Method name="loadDriver" />
- <Bug pattern="REC_CATCH_EXCEPTION" />
- </Match>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<FindBugsFilter
+ xmlns="https://github.com/spotbugs/filter/3.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd">
+ <!-- N.B. Using wild-card class names so exclusions work regardless of the top-level package -->
+
+ <!-- PrintWriter wraps System.err which always uses the default encoding -->
+ <Match>
+ <Class name="org.apache.commons.dbutils.DbUtils" />
+ <Method name="printStackTrace" />
+ <Bug pattern="DM_DEFAULT_ENCODING" />
+ </Match>
+ <!-- PrintWriter wraps System.err which always uses the default encoding -->
+ <Match>
+ <Class name="org.apache.commons.dbutils.DbUtils" />
+ <Method name="printWarnings" />
+ <Bug pattern="DM_DEFAULT_ENCODING" />
+ </Match>
+ <!-- The Javadocs state and the called code shows that null can be returned. -->
+ <Match>
+ <Class name="org.apache.commons.dbutils.QueryLoader" />
+ <Method name="loadQueries" />
+ <Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE" />
+ </Match>
+ <!-- This method returns a boolean indicating status. -->
+ <Match>
+ <Class name="org.apache.commons.dbutils.DbUtils" />
+ <Method name="loadDriver" />
+ <Bug pattern="REC_CATCH_EXCEPTION" />
+ </Match>
</FindBugsFilter>
\ No newline at end of file