Log to nullOutputStream() instead of hijacking System.out by default

master
Graham 5 years ago
parent 08f5ff034a
commit 37ccfa342d
  1. 4
      src/main/java/org/apache/harmony/unpack200/Archive.java

@ -148,7 +148,7 @@ public class Archive {
segment.setLogLevel(logLevel); segment.setLogLevel(logLevel);
segment segment
.setLogStream(logFile != null ? (OutputStream) logFile .setLogStream(logFile != null ? (OutputStream) logFile
: (OutputStream) System.out); : OutputStream.nullOutputStream());
segment.setPreRead(false); segment.setPreRead(false);
if (i == 1) { if (i == 1) {
@ -245,4 +245,4 @@ public class Archive {
this.deflateHint = deflateHint; this.deflateHint = deflateHint;
} }
} }

Loading…
Cancel
Save