Skip to content

Commit 7150220

Browse files
committed
LogPrintStream: use kutil NullOutputStream
nullOutputStream is java9+
1 parent 105dbe7 commit 7150220

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/de/bixilon/minosoft/util/logging/LogPrintStream.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Minosoft
3-
* Copyright (C) 2020-2025 Moritz Zwerger
3+
* Copyright (C) 2020-2026 Moritz Zwerger
44
*
55
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
66
*
@@ -12,12 +12,13 @@
1212
*/
1313
package de.bixilon.minosoft.util.logging
1414

15+
import de.bixilon.kutil.stream.NullOutputStream
1516
import java.io.PrintStream
1617

1718
class LogPrintStream(
1819
val type: LogMessageType = LogMessageType.OTHER,
1920
val level: LogLevels,
20-
) : PrintStream(nullOutputStream()) {
21+
) : PrintStream(NullOutputStream()) {
2122

2223
override fun print(string: String?) {
2324
if (string == null || string.isBlank()) return

0 commit comments

Comments
 (0)