From 86263f602a1293de5cb76b356de8ed6e0025cdb1 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Thu, 4 Feb 2021 13:24:54 +0300 Subject: [PATCH] Remove inline from Random-based RandomGenerator.kt to work around https://youtrack.jetbrains.com/issue/KT-44703 --- build.gradle.kts | 2 +- kmath-core/api/kmath-core.api | 2 +- .../kotlin/kscience/kmath/structures/{Buffers.kt => Buffer.kt} | 0 .../commonMain/kotlin/kscience/kmath/stat/RandomGenerator.kt | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename kmath-core/src/commonMain/kotlin/kscience/kmath/structures/{Buffers.kt => Buffer.kt} (100%) diff --git a/build.gradle.kts b/build.gradle.kts index ddce63678..7fe132315 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,7 +4,7 @@ plugins { id("ru.mipt.npm.project") } -internal val kmathVersion: String by extra("0.2.0-dev-6") +internal val kmathVersion: String by extra("0.2.0-dev-7") internal val bintrayRepo: String by extra("kscience") internal val githubProject: String by extra("kmath") diff --git a/kmath-core/api/kmath-core.api b/kmath-core/api/kmath-core.api index 790259192..66d8079d0 100644 --- a/kmath-core/api/kmath-core.api +++ b/kmath-core/api/kmath-core.api @@ -2708,7 +2708,7 @@ public final class kscience/kmath/structures/Buffer$DefaultImpls { public static fun contentEquals (Lkscience/kmath/structures/Buffer;Lkscience/kmath/structures/Buffer;)Z } -public final class kscience/kmath/structures/BuffersKt { +public final class kscience/kmath/structures/BufferKt { public static final fun ListBuffer (ILkotlin/jvm/functions/Function1;)Ljava/util/List; public static final fun asBuffer (Ljava/util/List;)Ljava/util/List; public static final fun asBuffer ([Ljava/lang/Object;)Lkscience/kmath/structures/ArrayBuffer; diff --git a/kmath-core/src/commonMain/kotlin/kscience/kmath/structures/Buffers.kt b/kmath-core/src/commonMain/kotlin/kscience/kmath/structures/Buffer.kt similarity index 100% rename from kmath-core/src/commonMain/kotlin/kscience/kmath/structures/Buffers.kt rename to kmath-core/src/commonMain/kotlin/kscience/kmath/structures/Buffer.kt diff --git a/kmath-stat/src/commonMain/kotlin/kscience/kmath/stat/RandomGenerator.kt b/kmath-stat/src/commonMain/kotlin/kscience/kmath/stat/RandomGenerator.kt index 4486ae016..da8ffaf3a 100644 --- a/kmath-stat/src/commonMain/kotlin/kscience/kmath/stat/RandomGenerator.kt +++ b/kmath-stat/src/commonMain/kotlin/kscience/kmath/stat/RandomGenerator.kt @@ -83,7 +83,7 @@ public interface RandomGenerator { /** * Implements [RandomGenerator] by delegating all operations to [Random]. */ -public inline class DefaultGenerator(public val random: Random = Random) : RandomGenerator { +public class DefaultGenerator(public val random: Random = Random) : RandomGenerator { public override fun nextBoolean(): Boolean = random.nextBoolean() public override fun nextDouble(): Double = random.nextDouble() public override fun nextInt(): Int = random.nextInt()