Harden deprecation level on remaining API in java.util in kotlin-stdlib-js

This commit is contained in:
Ilya Gorbunov
2017-01-17 18:51:08 +03:00
parent 3948c1e007
commit 1ccc655cdc
+9 -9
View File
@@ -20,30 +20,30 @@ package java.util
// TODO: Not supported
// typealias Date = kotlin.js.Date
@Deprecated("Use kotlin.js.Date instead", ReplaceWith("kotlin.js.Date"))
@Deprecated("Use kotlin.js.Date instead", ReplaceWith("kotlin.js.Date"), level = DeprecationLevel.ERROR)
public external class Date() {
public fun getTime(): Int
}
@Deprecated("Use kotlin.collections.RandomAccess instead", ReplaceWith("kotlin.collections.RandomAccess"))
@Deprecated("Use kotlin.collections.RandomAccess instead", ReplaceWith("kotlin.collections.RandomAccess"), level = DeprecationLevel.ERROR)
public typealias RandomAccess = kotlin.collections.RandomAccess
@Deprecated("Use kotlin.collections.ArrayList instead", ReplaceWith("kotlin.collections.ArrayList<E>"))
@Deprecated("Use kotlin.collections.ArrayList instead", ReplaceWith("kotlin.collections.ArrayList<E>"), level = DeprecationLevel.ERROR)
public typealias ArrayList<E> = kotlin.collections.ArrayList<E>
@Deprecated("Use kotlin.collections.HashSet instead", ReplaceWith("kotlin.collections.HashSet<E>"))
@Deprecated("Use kotlin.collections.HashSet instead", ReplaceWith("kotlin.collections.HashSet<E>"), level = DeprecationLevel.ERROR)
public typealias HashSet<E> = kotlin.collections.HashSet<E>
@Deprecated("Use kotlin.collections.LinkedHashSet instead", ReplaceWith("kotlin.collections.LinkedHashSet<E>"))
@Deprecated("Use kotlin.collections.LinkedHashSet instead", ReplaceWith("kotlin.collections.LinkedHashSet<E>"), level = DeprecationLevel.ERROR)
public typealias LinkedHashSet<E> = kotlin.collections.LinkedHashSet<E>
@Deprecated("Use kotlin.collections.HashMap instead", ReplaceWith("kotlin.collections.HashMap<E>"))
@Deprecated("Use kotlin.collections.HashMap instead", ReplaceWith("kotlin.collections.HashMap<E>"), level = DeprecationLevel.ERROR)
public typealias HashMap<K, V> = kotlin.collections.HashMap<K, V>
@Deprecated("Use kotlin.collections.LinkedHashMap instead", ReplaceWith("kotlin.collections.LinkedHashMap<E>"))
@Deprecated("Use kotlin.collections.LinkedHashMap instead", ReplaceWith("kotlin.collections.LinkedHashMap<E>"), level = DeprecationLevel.ERROR)
public typealias LinkedHashMap<K, V> = kotlin.collections.LinkedHashMap<K, V>
@Deprecated("Use AbstractCollection or AbstractMutableCollection from kotlin.collections", ReplaceWith("kotlin.collections.AbstractMutableCollection<E>"))
@Deprecated("Use AbstractCollection or AbstractMutableCollection from kotlin.collections", ReplaceWith("kotlin.collections.AbstractMutableCollection<E>"), level = DeprecationLevel.ERROR)
public abstract class AbstractCollection<E> : kotlin.collections.AbstractMutableCollection<E>() {
override fun add(element: E): Boolean = throw UnsupportedOperationException()
}
@Deprecated("Use AbstractList or AbstractMutableList from kotlin.collections", ReplaceWith("kotlin.collections.AbstractMutableList<E>"))
@Deprecated("Use AbstractList or AbstractMutableList from kotlin.collections", ReplaceWith("kotlin.collections.AbstractMutableList<E>"), level = DeprecationLevel.ERROR)
public abstract class AbstractList<E> : kotlin.collections.AbstractMutableList<E>() {
override fun add(index: Int, element: E): Unit = throw UnsupportedOperationException()
override fun removeAt(index: Int): E = throw UnsupportedOperationException()