Some 200 warnings eliminated from stdlib code

This commit is contained in:
Andrey Breslav
2012-10-19 16:10:21 +04:00
parent 57e6d2a2a5
commit 92ef1c9417
29 changed files with 187 additions and 221 deletions
+3 -3
View File
@@ -11,13 +11,13 @@ import junit.framework.TestCase
class OldStdlibTest() : TestCase() {
fun testCollectionEmpty() {
assertNot {
Arrays.asList(0, 1, 2)?.empty ?: false
Arrays.asList(0, 1, 2).empty
}
}
fun testCollectionSize() {
assertTrue {
Arrays.asList(0, 1, 2)?.size == 3
Arrays.asList(0, 1, 2).size == 3
}
}
@@ -29,7 +29,7 @@ class OldStdlibTest() : TestCase() {
}
for(b in x.inputStream) {
System.out?.println(b)
System.out.println(b)
}
}
}