From 1ccc655cdce644561a3e8ed0dcb34a68e3409b70 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Tue, 17 Jan 2017 18:51:08 +0300 Subject: [PATCH] Harden deprecation level on remaining API in java.util in kotlin-stdlib-js --- js/js.libraries/src/core/javautil.kt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/js/js.libraries/src/core/javautil.kt b/js/js.libraries/src/core/javautil.kt index e413ea80344..001db444179 100644 --- a/js/js.libraries/src/core/javautil.kt +++ b/js/js.libraries/src/core/javautil.kt @@ -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")) +@Deprecated("Use kotlin.collections.ArrayList instead", ReplaceWith("kotlin.collections.ArrayList"), level = DeprecationLevel.ERROR) public typealias ArrayList = kotlin.collections.ArrayList -@Deprecated("Use kotlin.collections.HashSet instead", ReplaceWith("kotlin.collections.HashSet")) +@Deprecated("Use kotlin.collections.HashSet instead", ReplaceWith("kotlin.collections.HashSet"), level = DeprecationLevel.ERROR) public typealias HashSet = kotlin.collections.HashSet -@Deprecated("Use kotlin.collections.LinkedHashSet instead", ReplaceWith("kotlin.collections.LinkedHashSet")) +@Deprecated("Use kotlin.collections.LinkedHashSet instead", ReplaceWith("kotlin.collections.LinkedHashSet"), level = DeprecationLevel.ERROR) public typealias LinkedHashSet = kotlin.collections.LinkedHashSet -@Deprecated("Use kotlin.collections.HashMap instead", ReplaceWith("kotlin.collections.HashMap")) +@Deprecated("Use kotlin.collections.HashMap instead", ReplaceWith("kotlin.collections.HashMap"), level = DeprecationLevel.ERROR) public typealias HashMap = kotlin.collections.HashMap -@Deprecated("Use kotlin.collections.LinkedHashMap instead", ReplaceWith("kotlin.collections.LinkedHashMap")) +@Deprecated("Use kotlin.collections.LinkedHashMap instead", ReplaceWith("kotlin.collections.LinkedHashMap"), level = DeprecationLevel.ERROR) public typealias LinkedHashMap = kotlin.collections.LinkedHashMap -@Deprecated("Use AbstractCollection or AbstractMutableCollection from kotlin.collections", ReplaceWith("kotlin.collections.AbstractMutableCollection")) +@Deprecated("Use AbstractCollection or AbstractMutableCollection from kotlin.collections", ReplaceWith("kotlin.collections.AbstractMutableCollection"), level = DeprecationLevel.ERROR) public abstract class AbstractCollection : kotlin.collections.AbstractMutableCollection() { override fun add(element: E): Boolean = throw UnsupportedOperationException() } -@Deprecated("Use AbstractList or AbstractMutableList from kotlin.collections", ReplaceWith("kotlin.collections.AbstractMutableList")) +@Deprecated("Use AbstractList or AbstractMutableList from kotlin.collections", ReplaceWith("kotlin.collections.AbstractMutableList"), level = DeprecationLevel.ERROR) public abstract class AbstractList : kotlin.collections.AbstractMutableList() { override fun add(index: Int, element: E): Unit = throw UnsupportedOperationException() override fun removeAt(index: Int): E = throw UnsupportedOperationException()