Skip to content

Commit

Permalink
fix: handle isValue exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
qoomon committed Aug 23, 2022
1 parent 35e4dea commit c33219c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -60,6 +60,6 @@ private val <T : Any> KClass<T>.boxedProperty: KProperty1<T, *>
private val <T : Any> KClass<T>.isValue_safe: Boolean
get() = try {
this.isValue
} catch (_: UnsupportedOperationException) {
} catch (_: Throwable) {
false
}
Expand Up @@ -60,6 +60,6 @@ private val <T : Any> KClass<T>.boxedProperty: KProperty1<T, *>
private val <T : Any> KClass<T>.isValue_safe: Boolean
get() = try {
this.isValue
} catch (_: UnsupportedOperationException) {
} catch (_: Throwable) {
false
}
Expand Up @@ -66,7 +66,7 @@ internal object ValueClassSupportDsl {
private val <T : Any> KClass<T>.isValue_safe: Boolean
get() = try {
this.isValue
} catch (_: UnsupportedOperationException) {
} catch (_: Throwable) {
false
}
}

0 comments on commit c33219c

Please sign in to comment.