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 2024/07/04 10:22:48 UTC

(commons-rng) 15/31: PMD fix: use diamond operator

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 bef6b0e8e1dc9c1ee811334c7c19b0fc9b864d69
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Wed Jul 3 15:06:09 2024 +0100

    PMD fix: use diamond operator
---
 .../main/java/org/apache/commons/rng/sampling/CompositeSamplers.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/CompositeSamplers.java b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/CompositeSamplers.java
index aba1aaaf..6e2003ac 100644
--- a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/CompositeSamplers.java
+++ b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/CompositeSamplers.java
@@ -597,7 +597,7 @@ public final class CompositeSamplers {
             SamplerBuilder.SamplerFactory<ObjectSampler<T>> {
         /** The instance. */
         @SuppressWarnings("rawtypes")
-        private static final ObjectSamplerFactory INSTANCE = new ObjectSamplerFactory();
+        private static final ObjectSamplerFactory INSTANCE = new ObjectSamplerFactory<>();
 
         /**
          * Get an instance.
@@ -649,7 +649,7 @@ public final class CompositeSamplers {
             SamplerBuilder.SamplerFactory<SharedStateObjectSampler<T>> {
         /** The instance. */
         @SuppressWarnings("rawtypes")
-        private static final SharedStateObjectSamplerFactory INSTANCE = new SharedStateObjectSamplerFactory();
+        private static final SharedStateObjectSamplerFactory INSTANCE = new SharedStateObjectSamplerFactory<>();
 
         /**
          * Get an instance.