You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2022/04/12 11:41:12 UTC
[commons-rng] 03/03: Spotbugs excludes for updated spotbugs version
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git
commit 4f63e259cb9da6236c0d287fd17e1b42aec9d9e3
Author: aherbert <ah...@apache.org>
AuthorDate: Tue Apr 12 12:41:01 2022 +0100
Spotbugs excludes for updated spotbugs version
---
src/main/resources/spotbugs/spotbugs-exclude-filter.xml | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/main/resources/spotbugs/spotbugs-exclude-filter.xml b/src/main/resources/spotbugs/spotbugs-exclude-filter.xml
index f50d6a4e..0d4dc201 100644
--- a/src/main/resources/spotbugs/spotbugs-exclude-filter.xml
+++ b/src/main/resources/spotbugs/spotbugs-exclude-filter.xml
@@ -117,4 +117,16 @@
<BugPattern name="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT"/>
</Match>
+ <Match>
+ <!-- This intentionally stores an externally mutable object. -->
+ <Class name="org.apache.commons.rng.simple.JDKRandomWrapper"/>
+ <BugPattern name="EI_EXPOSE_REP2"/>
+ </Match>
+
+ <Match>
+ <!-- This intentionally creates a single-use SecureRandom to generate a seed. -->
+ <Class name="org.apache.commons.rng.simple.internal.SeedFactory"/>
+ <BugPattern name="DMI_RANDOM_USED_ONLY_ONCE"/>
+ </Match>
+
</FindBugsFilter>