Avoids warnings
This commit is contained in:
+1
@@ -26,5 +26,6 @@ internal actual class ScratchLocal<T> actual constructor(
|
|||||||
) {
|
) {
|
||||||
private val tl = ThreadLocal.withInitial(initializer)
|
private val tl = ThreadLocal.withInitial(initializer)
|
||||||
|
|
||||||
|
@Suppress("NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS")
|
||||||
actual fun get(): T = tl.get()
|
actual fun get(): T = tl.get()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user