Skip to content

Commit d85878a

Browse files
author
Robert Winkler
committed
Added snapshot repo
1 parent f146944 commit d85878a

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,8 @@ allprojects {
7373
repositories {
7474
mavenLocal()
7575
mavenCentral()
76+
maven {
77+
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
78+
}
7679
}
7780
}

kotlin-wot-reflection/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
dependencies {
22
api(project(":kotlin-wot"))
3-
implementation("ch.qos.logback:logback-classic:1.5.12")
3+
implementation("org.slf4j:slf4j-api:2.0.16")
4+
//implementation("ch.qos.logback:logback-classic:1.5.12")
45
implementation("org.jetbrains.kotlin:kotlin-reflect")
56
testImplementation("io.mockk:mockk:1.13.13")
67
testImplementation(project(":kotlin-wot-binding-http"))

kotlin-wot-reflection/src/main/kotlin/reflection/ExposedThingBuilder.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,7 @@ object ExposedThingBuilder {
686686

687687
private fun handleEnumString(input: TextNode, classifier: KClass<*>): Any? {
688688
log.debug("Handling enum StringValue: input={}, classifier={}", input, classifier)
689+
@Suppress("UNCHECKED_CAST")
689690
val enumClass = classifier as KClass<out Enum<*>>
690691
return enumClass.java.enumConstants?.find { it.name == input.asText() }
691692
?: throw IllegalArgumentException("Unknown enum value: ${input.asText()}")

0 commit comments

Comments
 (0)