@Nullable/@NotNull annotations for Input/Outoput Streams and Data Input/Output

This commit is contained in:
Andrey Breslav
2012-09-20 20:27:23 +04:00
parent a2ebc27a6a
commit 1a44599d7c
2 changed files with 321 additions and 127 deletions
+2 -2
View File
@@ -111,7 +111,7 @@ private val stdin : BufferedReader = BufferedReader(InputStreamReader(object : I
System.`in`?.reset()
}
public override fun read(b: ByteArray?): Int {
public override fun read(b: ByteArray): Int {
return System.`in`?.read(b) ?: -1
}
@@ -135,7 +135,7 @@ private val stdin : BufferedReader = BufferedReader(InputStreamReader(object : I
return System.`in`?.markSupported() ?: false
}
public override fun read(b: ByteArray?, off: Int, len: Int): Int {
public override fun read(b: ByteArray, off: Int, len: Int): Int {
return System.`in`?.read(b, off, len) ?: -1
}
}))