Skip to content

Commit

Permalink
Update api
Browse files Browse the repository at this point in the history
  • Loading branch information
hfhbd committed Aug 17, 2024
1 parent 0b6e8f5 commit a883728
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kotlinx-uuid-core/api/jvm/kotlinx-uuid-core.api
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}

0 comments on commit a883728

Please sign in to comment.