Repository: qpid-jms
Updated Branches:
  refs/heads/master 68d457115 -> 55516e477


NO-JIRA: add some initial config for filtering the findbugs results


Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/c1553ee2
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/c1553ee2
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/c1553ee2

Branch: refs/heads/master
Commit: c1553ee2a1158676d3b18a31d721f48ca3df5c02
Parents: 68d4571
Author: Robert Gemmell <[email protected]>
Authored: Fri Jun 5 16:27:24 2015 +0100
Committer: Robert Gemmell <[email protected]>
Committed: Fri Jun 5 16:27:24 2015 +0100

----------------------------------------------------------------------
 qpid-jms-client/pom.xml                       |  1 +
 qpid-jms-client/src/site/findbugs-exclude.xml | 52 ++++++++++++++++++++++
 2 files changed, 53 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/c1553ee2/qpid-jms-client/pom.xml
----------------------------------------------------------------------
diff --git a/qpid-jms-client/pom.xml b/qpid-jms-client/pom.xml
index e9a985a..60f4efe 100644
--- a/qpid-jms-client/pom.xml
+++ b/qpid-jms-client/pom.xml
@@ -101,6 +101,7 @@
         <configuration>
           <threshold>Normal</threshold>
           <effort>Default</effort>
+          
<excludeFilterFile>${project.basedir}/src/site/findbugs-exclude.xml</excludeFilterFile>
         </configuration>
       </plugin>
     </plugins>

http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/c1553ee2/qpid-jms-client/src/site/findbugs-exclude.xml
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/site/findbugs-exclude.xml 
b/qpid-jms-client/src/site/findbugs-exclude.xml
new file mode 100644
index 0000000..4efe0d9
--- /dev/null
+++ b/qpid-jms-client/src/site/findbugs-exclude.xml
@@ -0,0 +1,52 @@
+<?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>
+  <!-- Expected because it is an implementation decision to give the
+       behaviour required by JMS, that attempting to read a null as a
+       primitive behaves like the matching valueOf(String s) method -->
+  <Match>
+    <Class name="org.apache.qpid.jms.message.JmsMapMessage"/>
+    <Or>
+      <Method name="getByte"/>
+      <Method name="getShort"/>
+      <Method name="getInt"/>
+      <Method name="getFloat"/>
+      <Method name="getDouble"/>
+    </Or>
+    <Bug pattern="NP_NULL_PARAM_DEREF"/>
+  </Match>
+  <Match>
+    <Class name="org.apache.qpid.jms.message.JmsMapMessage"/>
+    <Or>
+      <Method name="getInt"/>
+      <Method name="getLong"/>
+    </Or>
+    <Bug pattern="DM_BOXED_PRIMITIVE_FOR_PARSING"/>
+  </Match>
+  <Match>
+    <Class name="org.apache.qpid.jms.message.JmsStreamMessage"/>
+    <Or>
+      <Method name="readByte"/>
+      <Method name="readShort"/>
+      <Method name="readInt"/>
+      <Method name="readFloat"/>
+      <Method name="readDouble"/>
+    </Or>
+    <Bug pattern="NP_NULL_PARAM_DEREF"/>
+  </Match>
+</FindBugsFilter>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to