Provide java.util.AbstractCollection and AbstractList as deprecated classes with implemented abstract methods rather than as typealiases to smooth migration.

This comes at price that `ArrayList is java.util.AbstractColleciton` is false.
This commit is contained in:
Ilya Gorbunov
2016-09-26 16:28:57 +03:00
parent ec6dbe7441
commit 8627547a63
2 changed files with 16 additions and 5 deletions
@@ -1,7 +1,5 @@
package foo
import java.util.AbstractList
class MyList<T>(vararg val data: T) : AbstractList<T>() {
override fun get(index: Int) = data[index]
override val size: Int get() = data.size