commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject [17/18] [math] Checkstyle.
Date Mon, 28 Dec 2015 17:23:29 GMT
Checkstyle.


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

Branch: refs/heads/master
Commit: 8d6d088622f8e4ea89e66ccbe097510fb4c932fd
Parents: 8a35ca4
Author: Gilles <erans@apache.org>
Authored: Mon Dec 28 18:18:25 2015 +0100
Committer: Gilles <erans@apache.org>
Committed: Mon Dec 28 18:18:25 2015 +0100

----------------------------------------------------------------------
 .../java/org/apache/commons/math4/random/BaseRandomGenerator.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/8d6d0886/src/main/java/org/apache/commons/math4/random/BaseRandomGenerator.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/random/BaseRandomGenerator.java b/src/main/java/org/apache/commons/math4/random/BaseRandomGenerator.java
index 2d78005..da801b0 100644
--- a/src/main/java/org/apache/commons/math4/random/BaseRandomGenerator.java
+++ b/src/main/java/org/apache/commons/math4/random/BaseRandomGenerator.java
@@ -120,7 +120,7 @@ public abstract class BaseRandomGenerator
             int bits;
             int val;
             do {
-                bits = (nextInt() >>> 1);
+                bits = nextInt() >>> 1;
                 val = bits % n;
             } while (bits - val + (n - 1) < 0);
             return val;


Mime
View raw message