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 282c461b38c1b99b74e65de8becda16be105b39f
Author: aherbert <[email protected]>
AuthorDate: Tue Aug 3 10:15:18 2021 +0100

    Use diamond operator
---
 .../java/org/apache/commons/rng/simple/ThreadLocalRandomSource.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/ThreadLocalRandomSource.java
 
b/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/ThreadLocalRandomSource.java
index 1e6e58c..8fbcc07 100644
--- 
a/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/ThreadLocalRandomSource.java
+++ 
b/commons-rng-simple/src/main/java/org/apache/commons/rng/simple/ThreadLocalRandomSource.java
@@ -70,8 +70,7 @@ public final class ThreadLocalRandomSource {
      * <p>This should only be modified to create new instances in a 
synchronized block.
      */
     private static final EnumMap<RandomSource, 
ThreadLocal<UniformRandomProvider>> SOURCES =
-        new EnumMap<RandomSource,
-                    ThreadLocal<UniformRandomProvider>>(RandomSource.class);
+        new EnumMap<>(RandomSource.class);
 
     /** No public construction. */
     private ThreadLocalRandomSource() {}

Reply via email to