You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2015/06/05 18:34:43 UTC
[1/2] qpid-jms git commit: NO-JIRA: add some initial config for
filtering the findbugs results
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 <ro...@apache.org>
Authored: Fri Jun 5 16:27:24 2015 +0100
Committer: Robert Gemmell <ro...@apache.org>
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: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org
[2/2] qpid-jms git commit: NO-JIRA: filter out results for the
generated parser
Posted by ro...@apache.org.
NO-JIRA: filter out results for the generated parser
Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/55516e47
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/55516e47
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/55516e47
Branch: refs/heads/master
Commit: 55516e4772534ddfba9388f587d15fc3adff3615
Parents: c1553ee
Author: Robert Gemmell <ro...@apache.org>
Authored: Fri Jun 5 17:23:17 2015 +0100
Committer: Robert Gemmell <ro...@apache.org>
Committed: Fri Jun 5 17:33:56 2015 +0100
----------------------------------------------------------------------
qpid-jms-client/pom.xml | 24 ++++++++++++++++++++++
qpid-jms-client/src/site/findbugs-exclude.xml | 5 +++++
2 files changed, 29 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/55516e47/qpid-jms-client/pom.xml
----------------------------------------------------------------------
diff --git a/qpid-jms-client/pom.xml b/qpid-jms-client/pom.xml
index 60f4efe..c3b6b09 100644
--- a/qpid-jms-client/pom.xml
+++ b/qpid-jms-client/pom.xml
@@ -90,6 +90,19 @@
</includes>
</resource>
</resources>
+ <plugins>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>${jacoco-plugin-version}</version>
+ <configuration>
+ <excludes>
+ <!-- Generated selector parser -->
+ <exclude>org/apache/qpid/jms/selector/parser/*.*</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
</build>
<reporting>
@@ -104,6 +117,17 @@
<excludeFilterFile>${project.basedir}/src/site/findbugs-exclude.xml</excludeFilterFile>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>${jacoco-plugin-version}</version>
+ <configuration>
+ <excludes>
+ <!-- Generated selector parser -->
+ <exclude>org/apache/qpid/jms/selector/parser/*.*</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
</plugins>
</reporting>
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/55516e47/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
index 4efe0d9..ce64526 100644
--- a/qpid-jms-client/src/site/findbugs-exclude.xml
+++ b/qpid-jms-client/src/site/findbugs-exclude.xml
@@ -49,4 +49,9 @@
</Or>
<Bug pattern="NP_NULL_PARAM_DEREF"/>
</Match>
+
+ <!-- Generated selector parser -->
+ <Match>
+ <Package name="org.apache.qpid.jms.selector.parser"/>
+ </Match>
</FindBugsFilter>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org