JVM_IR fix 'remove' in inline class implementing MutableCollection
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
class IntMutableCollection(private val mc: MutableCollection<Int>) : MutableCollection<Int> {
|
||||
override val size: Int get() = mc.size
|
||||
override fun contains(element: Int): Boolean = mc.contains(element)
|
||||
override fun containsAll(elements: Collection<Int>): Boolean = mc.containsAll(elements)
|
||||
override fun isEmpty(): Boolean = mc.isEmpty()
|
||||
override fun add(element: Int): Boolean = mc.add(element)
|
||||
override fun addAll(elements: Collection<Int>): Boolean = mc.addAll(elements)
|
||||
override fun clear() { mc.clear() }
|
||||
override fun iterator(): MutableIterator<Int> = mc.iterator()
|
||||
override fun remove(element: Int): Boolean = mc.remove(element)
|
||||
override fun removeAll(elements: Collection<Int>): Boolean = mc.removeAll(elements)
|
||||
override fun retainAll(elements: Collection<Int>): Boolean = mc.retainAll(elements)
|
||||
}
|
||||
|
||||
class LongMutableCollection(private val mc: MutableCollection<Long>) : MutableCollection<Long> {
|
||||
override val size: Int get() = mc.size
|
||||
override fun contains(element: Long): Boolean = mc.contains(element)
|
||||
override fun containsAll(elements: Collection<Long>): Boolean = mc.containsAll(elements)
|
||||
override fun isEmpty(): Boolean = mc.isEmpty()
|
||||
override fun add(element: Long): Boolean = mc.add(element)
|
||||
override fun addAll(elements: Collection<Long>): Boolean = mc.addAll(elements)
|
||||
override fun clear() { mc.clear() }
|
||||
override fun iterator(): MutableIterator<Long> = mc.iterator()
|
||||
override fun remove(element: Long): Boolean = mc.remove(element)
|
||||
override fun removeAll(elements: Collection<Long>): Boolean = mc.removeAll(elements)
|
||||
override fun retainAll(elements: Collection<Long>): Boolean = mc.retainAll(elements)
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
@kotlin.Metadata
|
||||
public final class IntMutableCollection {
|
||||
// source: 'mutableCollectionOfPrimitive.kt'
|
||||
private final field mc: java.util.Collection
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.util.Collection): void
|
||||
public method add(p0: int): boolean
|
||||
public synthetic bridge method add(p0: java.lang.Object): boolean
|
||||
public method addAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public method clear(): void
|
||||
public method contains(p0: int): boolean
|
||||
public bridge final method contains(p0: java.lang.Object): boolean
|
||||
public method containsAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public method getSize(): int
|
||||
public method isEmpty(): boolean
|
||||
public @org.jetbrains.annotations.NotNull method iterator(): java.util.Iterator
|
||||
public method remove(@org.jetbrains.annotations.NotNull p0: java.lang.Integer): boolean
|
||||
public bridge final method remove(p0: java.lang.Object): boolean
|
||||
public method removeAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public method retainAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public bridge final method size(): int
|
||||
public method toArray(): java.lang.Object[]
|
||||
public method toArray(p0: java.lang.Object[]): java.lang.Object[]
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class LongMutableCollection {
|
||||
// source: 'mutableCollectionOfPrimitive.kt'
|
||||
private final field mc: java.util.Collection
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.util.Collection): void
|
||||
public synthetic bridge method add(p0: java.lang.Object): boolean
|
||||
public method add(p0: long): boolean
|
||||
public method addAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public method clear(): void
|
||||
public bridge final method contains(p0: java.lang.Object): boolean
|
||||
public method contains(p0: long): boolean
|
||||
public method containsAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public method getSize(): int
|
||||
public method isEmpty(): boolean
|
||||
public @org.jetbrains.annotations.NotNull method iterator(): java.util.Iterator
|
||||
public bridge final method remove(p0: java.lang.Object): boolean
|
||||
public method remove(p0: long): boolean
|
||||
public method removeAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public method retainAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public bridge final method size(): int
|
||||
public method toArray(): java.lang.Object[]
|
||||
public method toArray(p0: java.lang.Object[]): java.lang.Object[]
|
||||
}
|
||||
Vendored
+47
@@ -0,0 +1,47 @@
|
||||
@kotlin.Metadata
|
||||
public final class IntMutableCollection {
|
||||
// source: 'mutableCollectionOfPrimitive.kt'
|
||||
private final @org.jetbrains.annotations.NotNull field mc: java.util.Collection
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.util.Collection): void
|
||||
public method add(p0: int): boolean
|
||||
public synthetic bridge method add(p0: java.lang.Object): boolean
|
||||
public method addAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public method clear(): void
|
||||
public method contains(p0: int): boolean
|
||||
public bridge final method contains(p0: java.lang.Object): boolean
|
||||
public method containsAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public method getSize(): int
|
||||
public method isEmpty(): boolean
|
||||
public @org.jetbrains.annotations.NotNull method iterator(): java.util.Iterator
|
||||
public method remove(@org.jetbrains.annotations.Nullable p0: java.lang.Integer): boolean
|
||||
public bridge final method remove(p0: java.lang.Object): boolean
|
||||
public method removeAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public method retainAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public bridge final method size(): int
|
||||
public method toArray(): java.lang.Object[]
|
||||
public method toArray(p0: java.lang.Object[]): java.lang.Object[]
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class LongMutableCollection {
|
||||
// source: 'mutableCollectionOfPrimitive.kt'
|
||||
private final @org.jetbrains.annotations.NotNull field mc: java.util.Collection
|
||||
public method <init>(@org.jetbrains.annotations.NotNull p0: java.util.Collection): void
|
||||
public synthetic bridge method add(p0: java.lang.Object): boolean
|
||||
public method add(p0: long): boolean
|
||||
public method addAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public method clear(): void
|
||||
public bridge final method contains(p0: java.lang.Object): boolean
|
||||
public method contains(p0: long): boolean
|
||||
public method containsAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public method getSize(): int
|
||||
public method isEmpty(): boolean
|
||||
public @org.jetbrains.annotations.NotNull method iterator(): java.util.Iterator
|
||||
public bridge final method remove(p0: java.lang.Object): boolean
|
||||
public method remove(p0: long): boolean
|
||||
public method removeAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public method retainAll(@org.jetbrains.annotations.NotNull p0: java.util.Collection): boolean
|
||||
public bridge final method size(): int
|
||||
public method toArray(): java.lang.Object[]
|
||||
public method toArray(p0: java.lang.Object[]): java.lang.Object[]
|
||||
}
|
||||
Reference in New Issue
Block a user