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 fba6bb80a4984bd8d6a74fa19f49be72a47637b3 Author: aherbert <[email protected]> AuthorDate: Wed May 22 10:39:34 2019 +0100 Added spotbugs exclusion for necessary null check. --- src/main/resources/spotbugs/spotbugs-exclude-filter.xml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/resources/spotbugs/spotbugs-exclude-filter.xml b/src/main/resources/spotbugs/spotbugs-exclude-filter.xml index 4bc9fcc..7507b3e 100644 --- a/src/main/resources/spotbugs/spotbugs-exclude-filter.xml +++ b/src/main/resources/spotbugs/spotbugs-exclude-filter.xml @@ -27,13 +27,20 @@ xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd"> <Match> - <Class name="~.*\.jmh\..*generated\..*" /> + <Class name="~.*\.jmh\..*generated\..*"/> </Match> <Match> <!-- Direct access to an internal array is required for the benchmark. --> - <Class name="org.apache.commons.rng.examples.jmh.ConstructionPerformance$Sources" /> + <Class name="org.apache.commons.rng.examples.jmh.ConstructionPerformance$Sources"/> <BugPattern name="EI_EXPOSE_REP"/> </Match> + <Match> + <!-- The EnumMap allows a null key so it must be checked for null. --> + <Class name="org.apache.commons.rng.simple.ThreadLocalRandomSource"/> + <Method name="current"/> + <BugPattern name="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/> + </Match> + </FindBugsFilter>
