drop BASE_WITH_NULLABLE_UPPER_BOUND

This commit is contained in:
Michael Nedzelsky
2015-10-14 19:15:08 +03:00
parent ced1edcf98
commit 57205f5721
24 changed files with 23 additions and 46 deletions
-3
View File
@@ -15,9 +15,6 @@ public fun typeof(a: Any?): String = noImpl
@native
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")
@native public fun <K, V> MutableMap<K, V>.set(key: K, value: V): V? = noImpl
@library
-5
View File
@@ -70,9 +70,7 @@ 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")
public fun poll(): E? = noImpl
@Suppress("BASE_WITH_NULLABLE_UPPER_BOUND")
public fun peek(): E? = noImpl
public fun offer(e: E): Boolean = noImpl
}
@@ -104,13 +102,10 @@ public open class LinkedHashSet<E>(
public open class HashMap<K, V>(initialCapacity: Int = DEFAULT_INITIAL_CAPACITY, loadFactor: Float = DEFAULT_LOAD_FACTOR) : MutableMap<K, V> {
override val size: Int get() = noImpl
override fun isEmpty(): Boolean = noImpl
@Suppress("BASE_WITH_NULLABLE_UPPER_BOUND")
override fun get(key: K): V? = noImpl
override fun containsKey(key: K): Boolean = noImpl
@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")
override fun remove(key: K): V? = noImpl
override fun clear(): Unit = noImpl
override fun containsValue(value: V): Boolean = noImpl