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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user