Repository: clerezza
Updated Branches:
  refs/heads/master c9be8cac6 -> ab278b609


Removed unnecessary boxing.


Project: http://git-wip-us.apache.org/repos/asf/clerezza/repo
Commit: http://git-wip-us.apache.org/repos/asf/clerezza/commit/ab278b60
Tree: http://git-wip-us.apache.org/repos/asf/clerezza/tree/ab278b60
Diff: http://git-wip-us.apache.org/repos/asf/clerezza/diff/ab278b60

Branch: refs/heads/master
Commit: ab278b609cfe1fee9704abb563679ae952bcc47f
Parents: c9be8ca
Author: kamaci <[email protected]>
Authored: Tue Nov 20 10:23:52 2018 +0300
Committer: kamaci <[email protected]>
Committed: Tue Nov 20 10:23:52 2018 +0300

----------------------------------------------------------------------
 .../main/java/org/apache/clerezza/rdf/core/test/RandomGraph.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/clerezza/blob/ab278b60/rdf/core.test/src/main/java/org/apache/clerezza/rdf/core/test/RandomGraph.java
----------------------------------------------------------------------
diff --git 
a/rdf/core.test/src/main/java/org/apache/clerezza/rdf/core/test/RandomGraph.java
 
b/rdf/core.test/src/main/java/org/apache/clerezza/rdf/core/test/RandomGraph.java
index 996ef6f..70cab4d 100644
--- 
a/rdf/core.test/src/main/java/org/apache/clerezza/rdf/core/test/RandomGraph.java
+++ 
b/rdf/core.test/src/main/java/org/apache/clerezza/rdf/core/test/RandomGraph.java
@@ -176,7 +176,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