commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject [3/3] commons-rng git commit: Clear PMD warning.
Date Wed, 23 Nov 2016 12:28:16 GMT
Clear PMD warning.


Project: http://git-wip-us.apache.org/repos/asf/commons-rng/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-rng/commit/e5be0025
Tree: http://git-wip-us.apache.org/repos/asf/commons-rng/tree/e5be0025
Diff: http://git-wip-us.apache.org/repos/asf/commons-rng/diff/e5be0025

Branch: refs/heads/master
Commit: e5be0025642637c4dae32ee29b9b3891127accf4
Parents: 5f69ca9
Author: Gilles <erans@apache.org>
Authored: Wed Nov 23 13:25:58 2016 +0100
Committer: Gilles <erans@apache.org>
Committed: Wed Nov 23 13:25:58 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/commons/rng/sampling/CollectionSampler.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rng/blob/e5be0025/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/CollectionSampler.java
----------------------------------------------------------------------
diff --git a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/CollectionSampler.java
b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/CollectionSampler.java
index 4cb2cde..bdbf089 100644
--- a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/CollectionSampler.java
+++ b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/CollectionSampler.java
@@ -18,6 +18,7 @@
 package org.apache.commons.rng.sampling;
 
 import java.util.Collection;
+import java.util.List;
 import java.util.ArrayList;
 
 import org.apache.commons.rng.UniformRandomProvider;
@@ -31,7 +32,7 @@ import org.apache.commons.rng.UniformRandomProvider;
  */
 public class CollectionSampler<T> {
     /** Collection to be sampled from. */
-    private final ArrayList<T> items;
+    private final List<T> items;
     /** RNG. */
     private final UniformRandomProvider rng;
 


Mime
View raw message