Skip to content

Commit 19bf4d5

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

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

integration/kotlinx-coroutines-guava/src/main/kotlin/kotlinx/coroutines/experimental/guava/ListenableFuture.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ public suspend fun <T> ListenableFuture<T>.await(): T = suspendCancellableCorout
114114
private class ContinuationCallback<T>(
115115
@Volatile @JvmField var cont: Continuation<T>?
116116
) : FutureCallback<T> {
117+
@Suppress("UNCHECKED_CAST")
117118
override fun onSuccess(result: T?) { cont?.resume(result as T) }
118119
override fun onFailure(t: Throwable) { cont?.resumeWithException(t) }
119120
}

0 commit comments

Comments
 (0)