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 2019/07/18 10:42:34 UTC

[commons-rng] 04/05: RNG-102: Suppress checkstyle 'rng' hidden field warning for Samplers.

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 d60401b54e99a401858884796b4cd05d2523fc3f
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Jul 18 10:49:17 2019 +0100

    RNG-102: Suppress checkstyle 'rng' hidden field warning for Samplers.
---
 src/main/resources/checkstyle/checkstyle-suppressions.xml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main/resources/checkstyle/checkstyle-suppressions.xml b/src/main/resources/checkstyle/checkstyle-suppressions.xml
index 647fc7e..44728f9 100644
--- a/src/main/resources/checkstyle/checkstyle-suppressions.xml
+++ b/src/main/resources/checkstyle/checkstyle-suppressions.xml
@@ -22,6 +22,8 @@
   <!-- Special cases with many parameters for the constructor. -->
   <suppress checks="ParameterNumber" files="[\\/]LargeMeanPoissonSampler\.java$" />
   <suppress checks="ParameterNumber" files="source64[\\/].*XoShiRo512.*\.java$" />
+  <!-- Special to allow withUniformRandomProvider to act as a constructor. -->
+  <suppress checks="HiddenField" files=".*Sampler\.java$" message="'rng' hides a field." />
   <!-- Be more lenient on tests. -->
   <suppress checks="Javadoc" files=".*[/\\]test[/\\].*" />
   <suppress checks="MultipleStringLiterals" files=".*[/\\]test[/\\].*" />