Skip to content

Commit 63e779c

Browse files
committed
Suppress unchecked cast warning
1 parent c95134f commit 63e779c

File tree

1 file changed

+1
-0
lines changed
  • integration/kotlinx-coroutines-jdk8/src/main/kotlin/kotlinx/coroutines/experimental/future

1 file changed

+1
-0
lines changed

integration/kotlinx-coroutines-jdk8/src/main/kotlin/kotlinx/coroutines/experimental/future/Future.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public suspend fun <T> CompletableFuture<T>.await(): T {
132132
private class ContinuationConsumer<T>(
133133
@Volatile @JvmField var cont: Continuation<T>?
134134
) : BiConsumer<T?, Throwable?> {
135+
@Suppress("UNCHECKED_CAST")
135136
override fun accept(result: T?, exception: Throwable?) {
136137
val cont = this.cont ?: return // atomically read current value unless null
137138
if (exception == null) // the future has been completed normally

0 commit comments

Comments
 (0)