commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject [12/12] commons-rng git commit: Harmonized the array creation style
Date Wed, 28 Sep 2016 22:22:40 GMT
Harmonized the array creation style


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

Branch: refs/heads/master
Commit: 5146ca68dc1023ae362b823502b75d15f2bb3c9f
Parents: e033715
Author: Emmanuel Bourg <ebourg@apache.org>
Authored: Thu Sep 29 00:19:20 2016 +0200
Committer: Emmanuel Bourg <ebourg@apache.org>
Committed: Thu Sep 29 00:19:20 2016 +0200

----------------------------------------------------------------------
 .../org/apache/commons/rng/internal/source32/KISSRandomTest.java   | 2 +-
 .../commons/rng/internal/source32/MultiplyWithCarry256Test.java    | 2 +-
 .../apache/commons/rng/internal/source64/XorShift1024StarTest.java | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rng/blob/5146ca68/src/test/java/org/apache/commons/rng/internal/source32/KISSRandomTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/rng/internal/source32/KISSRandomTest.java b/src/test/java/org/apache/commons/rng/internal/source32/KISSRandomTest.java
index e45bc09..4fa3bdb 100644
--- a/src/test/java/org/apache/commons/rng/internal/source32/KISSRandomTest.java
+++ b/src/test/java/org/apache/commons/rng/internal/source32/KISSRandomTest.java
@@ -22,7 +22,7 @@ import org.junit.Test;
 public class KISSRandomTest {
     @Test
     public void testMarsaglia() {
-        final int[] seed = new int[] {
+        final int[] seed = {
             0x159a55e5, 0x1f123bb5, 0x75bcd15, 0x16a81cc0
         };
 

http://git-wip-us.apache.org/repos/asf/commons-rng/blob/5146ca68/src/test/java/org/apache/commons/rng/internal/source32/MultiplyWithCarry256Test.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/rng/internal/source32/MultiplyWithCarry256Test.java
b/src/test/java/org/apache/commons/rng/internal/source32/MultiplyWithCarry256Test.java
index 174bf88..e8319ca 100644
--- a/src/test/java/org/apache/commons/rng/internal/source32/MultiplyWithCarry256Test.java
+++ b/src/test/java/org/apache/commons/rng/internal/source32/MultiplyWithCarry256Test.java
@@ -22,7 +22,7 @@ import org.junit.Test;
 public class MultiplyWithCarry256Test {
     @Test
     public void testMarsaglia() {
-        final int[] seed = new int[] {
+        final int[] seed = {
             0x000587c4, // initial carry
             0xff710353, 0x1b427020, 0xc9c59991, 0x96e511e0, 0xf1d06013, 0xe0216c68, 0x98999e3d,
0xce158f68,
             0xb8d320ef, 0x905ddbf0, 0xda9717c9, 0x78498c30, 0x4681a0ab, 0x781347a8, 0x62eafcb5,
0x0a9bdc68,

http://git-wip-us.apache.org/repos/asf/commons-rng/blob/5146ca68/src/test/java/org/apache/commons/rng/internal/source64/XorShift1024StarTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/rng/internal/source64/XorShift1024StarTest.java
b/src/test/java/org/apache/commons/rng/internal/source64/XorShift1024StarTest.java
index 67d501d..2a174fb 100644
--- a/src/test/java/org/apache/commons/rng/internal/source64/XorShift1024StarTest.java
+++ b/src/test/java/org/apache/commons/rng/internal/source64/XorShift1024StarTest.java
@@ -26,7 +26,7 @@ public class XorShift1024StarTest {
          * Data from running the executable compiled from the author's C code:
          *   http://xorshift.di.unimi.it/xorshift1024star.c
          */
-        final long[] seed = new long[] {
+        final long[] seed = {
             0x012de1babb3c4104L, 0xa5a818b8fc5aa503L, 0xb124ea2b701f4993L, 0x18e0374933d8c782L,
             0x2af8df668d68ad55L, 0x76e56f59daa06243L, 0xf58c016f0f01e30fL, 0x8eeafa41683dbbf4L,
             0x7bf121347c06677fL, 0x4fd0c88d25db5ccbL, 0x99af3be9ebe0a272L, 0x94f2b33b74d0bdcbL,


Mime
View raw message