This is an automated email from the ASF dual-hosted git repository.

pottlinger pushed a commit to branch feature/RAT-369
in repository https://gitbox.apache.org/repos/asf/creadur-rat.git

commit 10f925aec56e9e6dd295606921fa8b6acb853cdd
Author: P. Ottlinger <[email protected]>
AuthorDate: Fri Apr 26 14:26:02 2024 +0200

    RAT-369: Add exclusion for charsets that cannot be set with Java8
---
 apache-rat-core/spotbugs_ignore.xml | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/apache-rat-core/spotbugs_ignore.xml 
b/apache-rat-core/spotbugs_ignore.xml
index f6a55af9..3b8f1d20 100644
--- a/apache-rat-core/spotbugs_ignore.xml
+++ b/apache-rat-core/spotbugs_ignore.xml
@@ -17,11 +17,10 @@
 -->
 <FindBugsFilter>
   <Match>
-    <!-- Uses tryWithResources, thus closes resource properly:
-    [ERROR] Medium: 
org.apache.rat.configuration.builders.ChildContainerBuilder.setResource(String) 
may fail to close stream
-    [org.apache.rat.configuration.builders.ChildContainerBuilder] At 
ChildContainerBuilder.java:[line 62] OS_OPEN_STREAM
+    <!--
+    Convenience constructors that allow setting a charset are not available in 
Java8 for PrintStream.
   -->
-    <Class name="org.apache.rat.configuration.builders.ChildContainerBuilder"/>
-    <Bug pattern="OS_OPEN_STREAM"/>
+    <Class name="org.apache.rat.Report"/>
+    <Bug pattern="DM_DEFAULT_ENCODING"/>
   </Match>
 </FindBugsFilter>

Reply via email to