mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 00:30:17 +08:00
Rename NoNonBlockingReader to NoConsoleNonBlockingReader
This commit is contained in:
parent
f677516a70
commit
284f6a28e1
@ -33,7 +33,7 @@ import java.io.PrintWriter
|
|||||||
private const val LN_INT = '\n'.toInt()
|
private const val LN_INT = '\n'.toInt()
|
||||||
private const val LN_BYTE = '\n'.toByte()
|
private const val LN_BYTE = '\n'.toByte()
|
||||||
|
|
||||||
internal object NoNonBlockingReader : NonBlockingReader() {
|
internal object NoConsoleNonBlockingReader : NonBlockingReader() {
|
||||||
override fun read(timeout: Long, isPeek: Boolean): Int {
|
override fun read(timeout: Long, isPeek: Boolean): Int {
|
||||||
return LN_INT
|
return LN_INT
|
||||||
}
|
}
|
||||||
@ -206,7 +206,7 @@ internal object AllEmptyLineReader : LineReader {
|
|||||||
internal object NoConsole : AbstractTerminal(
|
internal object NoConsole : AbstractTerminal(
|
||||||
"No Console", "No Console"
|
"No Console", "No Console"
|
||||||
) {
|
) {
|
||||||
override fun reader(): NonBlockingReader = NoNonBlockingReader
|
override fun reader(): NonBlockingReader = NoConsoleNonBlockingReader
|
||||||
|
|
||||||
private val AllIgnoredPrintWriter = object : PrintWriter(AllIgnoredOutputStream) {
|
private val AllIgnoredPrintWriter = object : PrintWriter(AllIgnoredOutputStream) {
|
||||||
override fun close() {
|
override fun close() {
|
||||||
|
Loading…
Reference in New Issue
Block a user