Repository: ignite Updated Branches: refs/heads/master 6a65a9e33 -> 66628dc56
IGNITE-7518 Fixed compilation. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/66628dc5 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/66628dc5 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/66628dc5 Branch: refs/heads/master Commit: 66628dc56d48b00d64dceace27b734d6b74c27fb Parents: 6a65a9e Author: Alexey Kuznetsov <[email protected]> Authored: Tue Jan 30 15:38:46 2018 +0700 Committer: Alexey Kuznetsov <[email protected]> Committed: Tue Jan 30 15:38:46 2018 +0700 ---------------------------------------------------------------------- .../ignite/scalar/examples/ScalarSnowflakeSchemaExample.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/66628dc5/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarSnowflakeSchemaExample.scala ---------------------------------------------------------------------- diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarSnowflakeSchemaExample.scala b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarSnowflakeSchemaExample.scala index eb8a538..b88cfa5 100644 --- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarSnowflakeSchemaExample.scala +++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarSnowflakeSchemaExample.scala @@ -19,13 +19,13 @@ package org.apache.ignite.scalar.examples import java.lang.{Integer => JavaInt} import java.util.ConcurrentModificationException +import java.util.concurrent.ThreadLocalRandom import javax.cache.Cache import org.apache.ignite.IgniteCache import org.apache.ignite.cache.CacheMode import org.apache.ignite.scalar.scalar import org.apache.ignite.scalar.scalar._ -import org.jsr166.ThreadLocalRandom8 import scala.collection.JavaConversions._ @@ -202,7 +202,7 @@ object ScalarSnowflakeSchemaExample { * @return Random value from the input collection. */ def rand[T](c: Iterable[_ <: T]): T = { - val n: Int = ThreadLocalRandom8.current.nextInt(c.size) + val n: Int = ThreadLocalRandom.current.nextInt(c.size) var i: Int = 0
