Skip to content

Commit 1fe6cef

Browse files
committed
[minor] Fix/suppress warnings
1 parent 12a60d8 commit 1fe6cef

File tree

1 file changed

+2
-1
lines changed
  • jupyter-lib/api/src/main/kotlin/org/jetbrains/kotlinx/jupyter/api

1 file changed

+2
-1
lines changed

jupyter-lib/api/src/main/kotlin/org/jetbrains/kotlinx/jupyter/api/VariableState.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ data class VariableStateImpl(
2525
val fieldValue = try {
2626
Result.success(property.get(scriptInstance))
2727
} catch (ex: Throwable) {
28-
Result.failure<Any?>(ex)
28+
Result.failure(ex)
2929
}
3030
property.isAccessible = wasAccessible
3131

@@ -69,6 +69,7 @@ data class VariableStateImpl(
6969

7070
val receivedInstances: MutableList<Any?> = mutableListOf()
7171
for (property in membersProperties) {
72+
@Suppress("UNCHECKED_CAST")
7273
property as KProperty1<Any, *>
7374
try {
7475
val wasAccessible = property.isAccessible

0 commit comments

Comments
 (0)