JS backend: move StringBuilder to java.lang. Fix append return type.

This commit is contained in:
Erokhin Stanislav
2013-10-12 10:27:46 +04:00
parent 4d999bbb1f
commit bb6fd90bd9
6 changed files with 18 additions and 18 deletions
+13 -3
View File
@@ -39,7 +39,17 @@ public trait Comparable<T> {
library
public trait Appendable {
public open fun append(csq: CharSequence?): Appendable?
public open fun append(csq: CharSequence?, start: Int, end: Int): Appendable?
public open fun append(c: Char): Appendable?
public open fun append(csq: CharSequence?): Appendable
//public open fun append(csq: CharSequence?, start: Int, end: Int): Appendable
public open fun append(c: Char): Appendable
}
library
public class StringBuilder() : Appendable {
override fun append(c: Char): StringBuilder = js.noImpl
override fun append(csq: CharSequence?): StringBuilder = js.noImpl
//TODO
//override fun append(csq: CharSequence?, start: Int, end: Int): StringBuilder = js.noImpl
public fun append(obj: Any?): StringBuilder = js.noImpl
public fun toString(): String = js.noImpl
}
-9
View File
@@ -103,15 +103,6 @@ public open class HashMap<K, V>(capacity: Int = 0) : MutableMap<K, V> {
public override fun entrySet(): MutableSet<MutableMap.MutableEntry<K, V>> = js.noImpl
}
library
public class StringBuilder() : Appendable {
override fun append(c: Char): Appendable? = js.noImpl
override fun append(csq: CharSequence?): Appendable? = js.noImpl
override fun append(csq: CharSequence?, start: Int, end: Int): Appendable? = js.noImpl
public fun append(obj: Any?): StringBuilder = js.noImpl
public fun toString(): String = js.noImpl
}
library
public class NoSuchElementException() : Exception() {
}