This is an automated email from the ASF dual-hosted git repository.

hasan pushed a commit to branch reunited
in repository https://gitbox.apache.org/repos/asf/clerezza.git

commit cf3d51f26d533e9556641cab7881d79afddacd90
Author: Hasan <[email protected]>
AuthorDate: Sat May 11 21:37:37 2019 +0200

    Reapply commit ab278b609cfe1fee9704abb563679ae952bcc47f
---
 .../src/main/java/org/apache/clerezza/test/utils/RandomGraph.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/test.utils/src/main/java/org/apache/clerezza/test/utils/RandomGraph.java 
b/test.utils/src/main/java/org/apache/clerezza/test/utils/RandomGraph.java
index d028594..a34a8b9 100644
--- a/test.utils/src/main/java/org/apache/clerezza/test/utils/RandomGraph.java
+++ b/test.utils/src/main/java/org/apache/clerezza/test/utils/RandomGraph.java
@@ -172,7 +172,7 @@ public class RandomGraph extends GraphWrapper {
     }
 
     private static int rollDice(int faces) {
-        return Double.valueOf(Math.random() * faces).intValue();
+        return (int) (Math.random() * faces);
     }
 
     private RDFTerm createRandomRDFTerm() {

Reply via email to