java classes should extend java.lang.Object

#KT-1121 fixed
This commit is contained in:
Stepan Koltsov
2012-04-27 16:16:02 +04:00
parent d67cc468d8
commit 225c9b4fa0
57 changed files with 122 additions and 71 deletions
+3 -3
View File
@@ -54,7 +54,7 @@ public inline fun <T> comparator(vararg functions: Function1<T,Any?>): Comparato
private class FunctionComparator<T>(val functions: Array<Function1<T,Any?>>): Comparator<T> {
public fun toString(): String {
public override fun toString(): String {
return "FunctionComparator${functions.toList()}"
}
@@ -75,7 +75,7 @@ public inline fun <T> comparator(fn: (T,T) -> Int): Comparator<T> {
}
private class Function2Comparator<T>(val compareFn: (T,T) -> Int): Comparator<T> {
public fun toString(): String {
public override fun toString(): String {
return "Function2Comparator${compareFn}"
}
@@ -89,4 +89,4 @@ private class Function2Comparator<T>(val compareFn: (T,T) -> Int): Comparator<T
public override fun equals(obj: Any?): Boolean {
return this == obj
}
}
}