From a8837280f4e6c83bb3ce0c79f3a8b10e0ad298e0 Mon Sep 17 00:00:00 2001 From: hfhbd <22521688+hfhbd@users.noreply.github.com> Date: Sat, 17 Aug 2024 11:26:40 +0200 Subject: [PATCH] Update api --- kotlinx-uuid-core/api/jvm/kotlinx-uuid-core.api | 2 +- kotlinx-uuid-core/src/jvmMain/kotlin/kotlinx/uuid/Converting.kt | 2 +- .../src/jvmTest/kotlin/kotlinx/uuid/JavaConvertingTest.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kotlinx-uuid-core/api/jvm/kotlinx-uuid-core.api b/kotlinx-uuid-core/api/jvm/kotlinx-uuid-core.api index 2214d73..2597f01 100644 --- a/kotlinx-uuid-core/api/jvm/kotlinx-uuid-core.api +++ b/kotlinx-uuid-core/api/jvm/kotlinx-uuid-core.api @@ -9,7 +9,7 @@ public final class kotlinx/uuid/BinarySerializer : kotlinx/serialization/KSerial public final class kotlinx/uuid/ConvertingKt { public static final fun toJavaUUID (Lkotlin/uuid/Uuid;)Ljava/util/UUID; - public static final fun toKotlinUUID (Ljava/util/UUID;)Lkotlin/uuid/Uuid; + public static final fun toKotlinUuid (Ljava/util/UUID;)Lkotlin/uuid/Uuid; } public final class kotlinx/uuid/NameBasedGeneratorKt { diff --git a/kotlinx-uuid-core/src/jvmMain/kotlin/kotlinx/uuid/Converting.kt b/kotlinx-uuid-core/src/jvmMain/kotlin/kotlinx/uuid/Converting.kt index 95c734e..9d18af4 100644 --- a/kotlinx-uuid-core/src/jvmMain/kotlin/kotlinx/uuid/Converting.kt +++ b/kotlinx-uuid-core/src/jvmMain/kotlin/kotlinx/uuid/Converting.kt @@ -9,7 +9,7 @@ import kotlin.uuid.Uuid * Converts this [java.util.UUID][java.util.UUID] value to a [kotlin.uuid.Uuid][Uuid] value * by using the default [toString] representation. */ -public fun java.util.UUID.toKotlinUUID(): Uuid = Uuid.parse(toString()) +public fun java.util.UUID.toKotlinUuid(): Uuid = Uuid.parse(toString()) /** * Converts this [kotlin.uuid.Uuid][Uuid] value to a [java.util.UUID][java.util.UUID] value diff --git a/kotlinx-uuid-core/src/jvmTest/kotlin/kotlinx/uuid/JavaConvertingTest.kt b/kotlinx-uuid-core/src/jvmTest/kotlin/kotlinx/uuid/JavaConvertingTest.kt index 3886851..c51da11 100644 --- a/kotlinx-uuid-core/src/jvmTest/kotlin/kotlinx/uuid/JavaConvertingTest.kt +++ b/kotlinx-uuid-core/src/jvmTest/kotlin/kotlinx/uuid/JavaConvertingTest.kt @@ -19,7 +19,7 @@ class JavaConvertingTest { @Test fun fromJavaUUID() { val javaUUID = java.util.UUID.fromString(SOME_UUID_STRING) - val kotlinUUID = javaUUID.toKotlinUUID() + val kotlinUUID = javaUUID.toKotlinUuid() assertEquals(SOME_UUID_STRING, kotlinUUID.toString()) } }