Replace deprecated annotations in whole project
This commit is contained in:
@@ -29,4 +29,4 @@ public annotation class volatile
|
||||
native
|
||||
public annotation class synchronized
|
||||
|
||||
public inline fun <R> synchronized(lock: Any, [inlineOptions(ONLY_LOCAL_RETURN)] block: () -> R): R = block()
|
||||
public inline fun <R> synchronized(lock: Any, @inlineOptions(ONLY_LOCAL_RETURN) block: () -> R): R = block()
|
||||
|
||||
@@ -16,7 +16,7 @@ public val undefined: Nothing? = noImpl
|
||||
|
||||
// Drop this after KT-2093 will be fixed and restore MutableMap.set in Maps.kt from MapsJVM.kt
|
||||
/** Provides [] access to maps */
|
||||
[suppress("BASE_WITH_NULLABLE_UPPER_BOUND")]
|
||||
@suppress("BASE_WITH_NULLABLE_UPPER_BOUND")
|
||||
native public fun <K, V> MutableMap<K, V>.set(key: K, value: V): V? = noImpl
|
||||
|
||||
library
|
||||
|
||||
@@ -70,9 +70,9 @@ public open class LinkedList<E>() : AbstractList<E>() {
|
||||
override fun set(index: Int, element: E): E = noImpl
|
||||
override fun add(index: Int, element: E): Unit = noImpl
|
||||
|
||||
[suppress("BASE_WITH_NULLABLE_UPPER_BOUND")]
|
||||
@suppress("BASE_WITH_NULLABLE_UPPER_BOUND")
|
||||
public fun poll(): E? = noImpl
|
||||
[suppress("BASE_WITH_NULLABLE_UPPER_BOUND")]
|
||||
@suppress("BASE_WITH_NULLABLE_UPPER_BOUND")
|
||||
public fun peek(): E? = noImpl
|
||||
public fun offer(e: E): Boolean = noImpl
|
||||
}
|
||||
@@ -104,13 +104,13 @@ library
|
||||
public open class HashMap<K, V>(initialCapacity: Int = DEFAULT_INITIAL_CAPACITY, loadFactor: Float = DEFAULT_LOAD_FACTOR) : MutableMap<K, V> {
|
||||
override fun size(): Int = noImpl
|
||||
override fun isEmpty(): Boolean = noImpl
|
||||
[suppress("BASE_WITH_NULLABLE_UPPER_BOUND")]
|
||||
@suppress("BASE_WITH_NULLABLE_UPPER_BOUND")
|
||||
override fun get(key: Any?): V? = noImpl
|
||||
override fun containsKey(key: Any?): Boolean = noImpl
|
||||
[suppress("BASE_WITH_NULLABLE_UPPER_BOUND")]
|
||||
@suppress("BASE_WITH_NULLABLE_UPPER_BOUND")
|
||||
override fun put(key: K, value: V): V? = noImpl
|
||||
override fun putAll(m: Map<out K, V>): Unit = noImpl
|
||||
[suppress("BASE_WITH_NULLABLE_UPPER_BOUND")]
|
||||
@suppress("BASE_WITH_NULLABLE_UPPER_BOUND")
|
||||
override fun remove(key: Any?): V? = noImpl
|
||||
override fun clear(): Unit = noImpl
|
||||
override fun containsValue(value: Any?): Boolean = noImpl
|
||||
|
||||
Reference in New Issue
Block a user