Make 'add' function abstract in AbstractMutableSet in JVM

This commit is contained in:
Ilya Gorbunov
2017-01-17 02:21:42 +03:00
parent b6443eed9e
commit ed9b9d972c
2 changed files with 2 additions and 2 deletions
@@ -5,6 +5,5 @@ import java.util.AbstractSet
@SinceKotlin("1.1")
public abstract class AbstractMutableSet<E> protected constructor() : MutableSet<E>, AbstractSet<E>() {
// nothing to make abstract
// it's a class rather than typealias in order to have bridge for `size` generated and nice non-platform types in methods
abstract override fun add(element: E): Boolean
}
@@ -192,6 +192,7 @@ public abstract class kotlin/collections/AbstractMutableMap : java/util/Abstract
public abstract class kotlin/collections/AbstractMutableSet : java/util/AbstractSet, java/util/Set, kotlin/jvm/internal/markers/KMutableSet {
protected fun <init> ()V
public abstract fun add (Ljava/lang/Object;)Z
public abstract fun getSize ()I
public final fun size ()I
}