You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by tf...@apache.org on 2012/08/25 05:57:23 UTC

svn commit: r1377195 - in /db/torque/torque4/trunk: torque-generator/src/main/plugin-config/ torque-generator/src/main/plugin-config/findbugs-exclude.xml torque-maven-parent/pom.xml

Author: tfischer
Date: Sat Aug 25 03:57:22 2012
New Revision: 1377195

URL: http://svn.apache.org/viewvc?rev=1377195&view=rev
Log:
try using findbugs filter files

Added:
    db/torque/torque4/trunk/torque-generator/src/main/plugin-config/
    db/torque/torque4/trunk/torque-generator/src/main/plugin-config/findbugs-exclude.xml
Modified:
    db/torque/torque4/trunk/torque-maven-parent/pom.xml

Added: db/torque/torque4/trunk/torque-generator/src/main/plugin-config/findbugs-exclude.xml
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/plugin-config/findbugs-exclude.xml?rev=1377195&view=auto
==============================================================================
--- db/torque/torque4/trunk/torque-generator/src/main/plugin-config/findbugs-exclude.xml (added)
+++ db/torque/torque4/trunk/torque-generator/src/main/plugin-config/findbugs-exclude.xml Sat Aug 25 03:57:22 2012
@@ -0,0 +1,47 @@
+<?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>
+  <Match>
+    <!-- 
+        Returning null as a Boolean value is ok.
+        Why else would the method signature be Boolean instead of boolean ?
+    -->
+    <Bug pattern="NP_BOOLEAN_RETURN_NULL" />
+  </Match>
+  <Match>
+    <!-- 
+        TemplateOutletImpl.load uses the default encoding if no
+        encoding is given. This behavior is ok.
+    -->
+    <Class name="org.apache.torque.generator.template.TemplateOutletImpl" />
+    <Method name="load" />
+    <Bug pattern="DM_DEFAULT_ENCODING" />
+  </Match>
+  <Match>
+    <!-- 
+        VelocityTemplateFilter.filter uses the default encoding if no
+        encoding is given. This behavior is ok.
+    -->
+    <Class name="org.apache.torque.generator.template.velocity.VelocityTemplateFilter" />
+    <Method name="filter" />
+    <Bug pattern="DM_DEFAULT_ENCODING" />
+  </Match>
+</FindBugsFilter>
\ No newline at end of file

Modified: db/torque/torque4/trunk/torque-maven-parent/pom.xml
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-maven-parent/pom.xml?rev=1377195&r1=1377194&r2=1377195&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-maven-parent/pom.xml (original)
+++ db/torque/torque4/trunk/torque-maven-parent/pom.xml Sat Aug 25 03:57:22 2012
@@ -398,6 +398,9 @@
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>findbugs-maven-plugin</artifactId>
         <version>2.5.2</version>
+        <configuration>
+          <excludeBugsFile>${basedir}/src/main/plugin-config/findbugs-exclude.xml</excludeBugsFile>
+        </configuration>
       </plugin>
     </plugins>
     <pluginManagement>



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org