Cleanup in libraries

This commit is contained in:
Ilya Gorbunov
2015-12-29 19:21:39 +03:00
parent 92c2d17910
commit 19a4f65fd1
15 changed files with 32 additions and 44 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ class IOStreamsTest {
var writer: Writer? = null
try {
writer = tmpFile.outputStream().writer()
writer!!.write("Hello, World!")
writer.write("Hello, World!")
} finally {
writer?.close()
}
@@ -19,7 +19,7 @@ class IOStreamsTest {
var reader: BufferedReader? = null
try {
reader = tmpFile.inputStream().reader().buffered()
act = reader!!.readLine()
act = reader.readLine()
} finally {
reader?.close()
}