Removed toArray() from collections (few tests are still failing).

#KT-3352 in progress
This commit is contained in:
Evgeny Gerashchenko
2013-09-25 03:01:47 +04:00
parent 48625dd7b6
commit d56c59d9d7
162 changed files with 21 additions and 75 deletions
@@ -79,9 +79,7 @@ class JavaToKotlinMethodMapGenerated {
pair("hashCode()", "fun hashCode(): jet.Int"), pair("hashCode()", "fun hashCode(): jet.Int"),
pair("isEmpty()", "fun isEmpty(): jet.Boolean"), pair("isEmpty()", "fun isEmpty(): jet.Boolean"),
pair("iterator()", "fun iterator(): jet.Iterator<E>"), pair("iterator()", "fun iterator(): jet.Iterator<E>"),
pair("size()", "fun size(): jet.Int"), pair("size()", "fun size(): jet.Int")
pair("toArray()", "fun toArray(): jet.Array<jet.Any?>"),
pair("toArray(T[])", "fun <T> toArray(a: jet.Array<out T>): jet.Array<T>")
); );
put(b, "java.util.Collection", "MutableCollection", put(b, "java.util.Collection", "MutableCollection",
@@ -97,9 +95,7 @@ class JavaToKotlinMethodMapGenerated {
pair("remove(java.lang.Object)", "fun remove(o: jet.Any?): jet.Boolean"), pair("remove(java.lang.Object)", "fun remove(o: jet.Any?): jet.Boolean"),
pair("removeAll(java.util.Collection<?>)", "fun removeAll(c: jet.Collection<jet.Any?>): jet.Boolean"), pair("removeAll(java.util.Collection<?>)", "fun removeAll(c: jet.Collection<jet.Any?>): jet.Boolean"),
pair("retainAll(java.util.Collection<?>)", "fun retainAll(c: jet.Collection<jet.Any?>): jet.Boolean"), pair("retainAll(java.util.Collection<?>)", "fun retainAll(c: jet.Collection<jet.Any?>): jet.Boolean"),
pair("size()", "fun size(): jet.Int"), pair("size()", "fun size(): jet.Int")
pair("toArray()", "fun toArray(): jet.Array<jet.Any?>"),
pair("toArray(T[])", "fun <T> toArray(a: jet.Array<out T>): jet.Array<T>")
); );
put(b, "java.util.List", "List", put(b, "java.util.List", "List",
@@ -115,9 +111,7 @@ class JavaToKotlinMethodMapGenerated {
pair("listIterator()", "fun listIterator(): jet.ListIterator<E>"), pair("listIterator()", "fun listIterator(): jet.ListIterator<E>"),
pair("listIterator(int)", "fun listIterator(index: jet.Int): jet.ListIterator<E>"), pair("listIterator(int)", "fun listIterator(index: jet.Int): jet.ListIterator<E>"),
pair("size()", "fun size(): jet.Int"), pair("size()", "fun size(): jet.Int"),
pair("subList(int, int)", "fun subList(fromIndex: jet.Int, toIndex: jet.Int): jet.List<E>"), pair("subList(int, int)", "fun subList(fromIndex: jet.Int, toIndex: jet.Int): jet.List<E>")
pair("toArray()", "fun toArray(): jet.Array<jet.Any?>"),
pair("toArray(T[])", "fun <T> toArray(a: jet.Array<out T>): jet.Array<T>")
); );
put(b, "java.util.List", "MutableList", put(b, "java.util.List", "MutableList",
@@ -143,9 +137,7 @@ class JavaToKotlinMethodMapGenerated {
pair("retainAll(java.util.Collection<?>)", "fun retainAll(c: jet.Collection<jet.Any?>): jet.Boolean"), pair("retainAll(java.util.Collection<?>)", "fun retainAll(c: jet.Collection<jet.Any?>): jet.Boolean"),
pair("set(int, E)", "fun set(index: jet.Int, element: E): E"), pair("set(int, E)", "fun set(index: jet.Int, element: E): E"),
pair("size()", "fun size(): jet.Int"), pair("size()", "fun size(): jet.Int"),
pair("subList(int, int)", "fun subList(fromIndex: jet.Int, toIndex: jet.Int): jet.MutableList<E>"), pair("subList(int, int)", "fun subList(fromIndex: jet.Int, toIndex: jet.Int): jet.MutableList<E>")
pair("toArray()", "fun toArray(): jet.Array<jet.Any?>"),
pair("toArray(T[])", "fun <T> toArray(a: jet.Array<out T>): jet.Array<T>")
); );
put(b, "java.util.Set", "Set", put(b, "java.util.Set", "Set",
@@ -155,9 +147,7 @@ class JavaToKotlinMethodMapGenerated {
pair("hashCode()", "fun hashCode(): jet.Int"), pair("hashCode()", "fun hashCode(): jet.Int"),
pair("isEmpty()", "fun isEmpty(): jet.Boolean"), pair("isEmpty()", "fun isEmpty(): jet.Boolean"),
pair("iterator()", "fun iterator(): jet.Iterator<E>"), pair("iterator()", "fun iterator(): jet.Iterator<E>"),
pair("size()", "fun size(): jet.Int"), pair("size()", "fun size(): jet.Int")
pair("toArray()", "fun toArray(): jet.Array<jet.Any?>"),
pair("toArray(T[])", "fun <T> toArray(a: jet.Array<out T>): jet.Array<T>")
); );
put(b, "java.util.Set", "MutableSet", put(b, "java.util.Set", "MutableSet",
@@ -173,9 +163,7 @@ class JavaToKotlinMethodMapGenerated {
pair("remove(java.lang.Object)", "fun remove(o: jet.Any?): jet.Boolean"), pair("remove(java.lang.Object)", "fun remove(o: jet.Any?): jet.Boolean"),
pair("removeAll(java.util.Collection<?>)", "fun removeAll(c: jet.Collection<jet.Any?>): jet.Boolean"), pair("removeAll(java.util.Collection<?>)", "fun removeAll(c: jet.Collection<jet.Any?>): jet.Boolean"),
pair("retainAll(java.util.Collection<?>)", "fun retainAll(c: jet.Collection<jet.Any?>): jet.Boolean"), pair("retainAll(java.util.Collection<?>)", "fun retainAll(c: jet.Collection<jet.Any?>): jet.Boolean"),
pair("size()", "fun size(): jet.Int"), pair("size()", "fun size(): jet.Int")
pair("toArray()", "fun toArray(): jet.Array<jet.Any?>"),
pair("toArray(T[])", "fun <T> toArray(a: jet.Array<out T>): jet.Array<T>")
); );
put(b, "java.util.Map", "Map", put(b, "java.util.Map", "Map",
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -4,5 +4,5 @@
*Z *Z
0B 0B
Z Z
&0_B &0]B
 
Binary file not shown.
@@ -3,5 +3,5 @@
R Ć0B R Ć0B
FZ FZ
0B 0B
Z &0ŹB Z &0ŞB
 
Binary file not shown.
@@ -3,5 +3,5 @@
R Ć0B R Ć0B
`Z `Z
0B 0B
Z &0ĚB Z &0ĘB
 
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More