Drop entire java.util package from kotlin-stdlib-js

#KT-6561 Fixed
This commit is contained in:
Ilya Gorbunov
2016-11-16 21:07:33 +03:00
parent 5867d27fb7
commit 3cea5c4510
-51
View File
@@ -1,51 +0,0 @@
/*
* Copyright 2010-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package java.util
// TODO: Not supported
// typealias Date = 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"), level = DeprecationLevel.ERROR)
public typealias RandomAccess = kotlin.collections.RandomAccess
@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>"), level = DeprecationLevel.ERROR)
public typealias HashSet<E> = kotlin.collections.HashSet<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>"), level = DeprecationLevel.ERROR)
public typealias HashMap<K, V> = kotlin.collections.HashMap<K, V>
@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>"), 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>"), 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()
override fun set(index: Int, element: E): E = throw UnsupportedOperationException()
}