Skip to content

Commit f20da2a

Browse files
committed
Update NullLogWriter to migrate NullOutputStream to INSTANCE (#7909)
(cherry picked from commit 8e0fdc2)
1 parent eac03d8 commit f20da2a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build-tools/geode-dependency-management/src/main/groovy/org/apache/geode/gradle/plugins/DependencyConstraints.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class DependencyConstraints {
3333
// These version numbers are consumed by :geode-modules-assembly:distAppServer filtering
3434
// Some of these are referenced below as well
3535
deps.put("antlr.version", "2.7.7")
36-
deps.put("commons-io.version", "2.11.0")
36+
deps.put("commons-io.version", "2.15.1")
3737
deps.put("commons-lang3.version", "3.12.0")
3838
deps.put("commons-validator.version", "1.7")
3939
deps.put("fastutil.version", "8.5.8")

geode-log4j/src/main/java/org/apache/geode/logging/log4j/internal/impl/NullLogWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
package org.apache.geode.logging.log4j.internal.impl;
1616

17-
import static org.apache.commons.io.output.NullOutputStream.NULL_OUTPUT_STREAM;
17+
import static org.apache.commons.io.output.NullOutputStream.INSTANCE;
1818

1919
import java.io.PrintStream;
2020

@@ -27,7 +27,7 @@
2727
class NullLogWriter extends ManagerLogWriter {
2828

2929
NullLogWriter() {
30-
this(LogWriterLevel.NONE.intLevel(), new PrintStream(NULL_OUTPUT_STREAM), true);
30+
this(LogWriterLevel.NONE.intLevel(), new PrintStream(INSTANCE), true);
3131
}
3232

3333
NullLogWriter(final int level, final PrintStream printStream, final boolean loner) {

0 commit comments

Comments
 (0)